Skip to content

Commit 7ee94d2

Browse files
committed
o2_dpg_workflow_runner.py: fix dry-run crash
1 parent c8dda3c commit 7ee94d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

MC/bin/o2_dpg_workflow_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ def submit(self, tid, nice):
12441244
self.procstatus[tid]='Running'
12451245
if args.dry_run:
12461246
drycommand="echo \' " + str(self.scheduling_iteration) + " : would do " + str(self.workflowspec['stages'][tid]['name']) + "\'"
1247-
return subprocess.Popen(['/bin/bash','-c',drycommand], cwd=workdir)
1247+
return psutil.Popen(['/bin/bash','-c',drycommand], cwd=workdir)
12481248

12491249
taskenv = os.environ.copy()
12501250
# apply specific (non-default) software version, if any

0 commit comments

Comments
 (0)