From bddd5374f1b67603e7109edb9ac22721587b753e Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Mon, 23 Nov 2020 18:52:13 +0100 Subject: [PATCH] TMSS-190: TODO: make parallel upload work. Right now it fails sometimes do to interdependencies and non-determistic upload order. --- SAS/TMSS/client/lib/populate.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/SAS/TMSS/client/lib/populate.py b/SAS/TMSS/client/lib/populate.py index 53f50b67a7a..bb39f696761 100644 --- a/SAS/TMSS/client/lib/populate.py +++ b/SAS/TMSS/client/lib/populate.py @@ -84,7 +84,13 @@ def populate_schemas(schema_dir: str=None, templates_filename: str=None): except Exception as 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 - with ThreadPoolExecutor() as executor: - executor.map(upload_template, templates) + # with ThreadPoolExecutor() as executor: + # executor.map(upload_template, templates) + + # for now, do sequeltial upload + for template in templates: + upload_template(template) + -- GitLab