Skip to content
Snippets Groups Projects
Commit bddd5374 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-190: TODO: make parallel upload work. Right now it fails sometimes do to...

TMSS-190: TODO: make parallel upload work. Right now it fails sometimes do to interdependencies and non-determistic upload order.
parent ffd23342
No related branches found
No related tags found
1 merge request!252Resolve TMSS-190
...@@ -84,7 +84,13 @@ def populate_schemas(schema_dir: str=None, templates_filename: str=None): ...@@ -84,7 +84,13 @@ def populate_schemas(schema_dir: str=None, templates_filename: str=None):
except Exception as e: except Exception as e:
logger.error(e) logger.error(e)
# TODO: make parallel upload work. Right now it fails sometimes do to interdependencies and non-determistic upload order.
# do parallel upload # do parallel upload
with ThreadPoolExecutor() as executor: # with ThreadPoolExecutor() as executor:
executor.map(upload_template, templates) # executor.map(upload_template, templates)
# for now, do sequeltial upload
for template in templates:
upload_template(template)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment