Skip to content

Commit df2f210

Browse files
committed
Workflow parser: no need any more to cache QC json files with DDS assets
1 parent 3184618 commit df2f210

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

DATA/tools/parse

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,10 @@ for line in f:
8989
if len(args) > 2 and not 'O2_ROOT' in os.environ:
9090
print('O2 not loaded')
9191
raise
92-
json_cache_path = os.environ['GEN_TOPO_WORKDIR'] + '/json_cache'
93-
if not os.path.exists(json_cache_path):
94-
os.makedirs(json_cache_path, 0o770)
95-
os.environ['GEN_TOPO_QC_JSON_FILE'] = os.path.abspath(json_cache_path + '/qc_tmp_' + datetime.datetime.now().strftime('%y-%m-%d-%H-%M-%S') + '_' + str(random.randrange(100000000)) + '.json')
9692
with tempfile.TemporaryDirectory(prefix='o2_workflow_') as tmpdir:
9793
if 'GEN_TOPO_OVERRIDE_TEMPDIR' in os.environ:
9894
tmpdir = os.environ['GEN_TOPO_OVERRIDE_TEMPDIR']
95+
os.environ['GEN_TOPO_QC_JSON_FILE'] = os.path.abspath(tmpdir + '/qc.json')
9996
if NO_PROCESSING_MODE and len(args) > 2:
10097
print('Cannot use DPL workflow together with DD mode', os.environ['DDMODE'])
10198
raise

0 commit comments

Comments
 (0)