Skip to content
Snippets Groups Projects
Commit d593d5bb authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: disable /opt/detector artifacts to avoid race condition(?)

parent ec0a337f
Branches
Tags
1 merge request!876fix: disable /opt/detector artifacts to avoid race condition
...@@ -159,11 +159,13 @@ if __name__ == '__main__': ...@@ -159,11 +159,13 @@ if __name__ == '__main__':
version=cfg['version'], version=cfg['version'],
branch=branch), branch=branch),
file=f) file=f)
## run once inside global prefix to initialize artifacts in /opt/detectors ## run once inside global prefix to initialize artifacts in /opt/detectors
os.environ['DETECTOR_PATH'] = args.prefix # os.environ['DETECTOR_PATH'] = args.prefix
cmd = f'cd {args.prefix} && source {prefix}/setup.sh && ddsim --compactFile {prefix}/share/{det}/{det}.xml --printLevel DEBUG -G -N1' # cmd = f'cd {args.prefix} && source {prefix}/setup.sh && ddsim --compactFile {prefix}/share/{det}/{det}.xml --printLevel DEBUG -G -N1'
print(cmd) # print(cmd)
process_list.append(subprocess.Popen(cmd, shell=True, executable='/bin/bash', stdout=subprocess.PIPE, stderr=subprocess.STDOUT)) # process_list.append(subprocess.Popen(cmd, shell=True, executable='/bin/bash', stdout=subprocess.PIPE, stderr=subprocess.STDOUT))
## run once inside specific prefix to initialize artifacts in $DETECTOR_PATH ## run once inside specific prefix to initialize artifacts in $DETECTOR_PATH
os.environ['DETECTOR_PATH'] = args.prefix os.environ['DETECTOR_PATH'] = args.prefix
cmd = f'cd {prefix}/share/{det} && source {prefix}/setup.sh && ddsim --compactFile {prefix}/share/{det}/{det}.xml --printLevel DEBUG -G -N1' cmd = f'cd {prefix}/share/{det} && source {prefix}/setup.sh && ddsim --compactFile {prefix}/share/{det}/{det}.xml --printLevel DEBUG -G -N1'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment