Commit e15117eb authored by Nane Kratzke's avatar Nane Kratzke
Browse files


parent b94caeb1
......@@ -48,9 +48,9 @@ def space():
with tracer.start_span(operation_name="parallel", child_of=parent_span) as span:
results = Parallel()(delayed(load_url)(key, url) for key, url in queries.items())
results = Parallel(n_jobs=3)(delayed(load_url)(key, url) for key, url in queries.items())
result = { key: content for key, content in results }
#for key, url in queries.items():
# with tracer.start_span(operation_name=key, child_of=parent_span) as span:
# result[key] = json.loads(requests.get(url).content)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment