File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -368,15 +368,16 @@ echo_info "Ready to start main workflow"
368368
369369${O2DPG_ROOT} /MC/bin/o2_dpg_workflow_runner.py -f workflow.json -tt ${ALIEN_JDL_O2DPGWORKFLOWTARGET:- aod} --cpu-limit ${ALIEN_JDL_CPULIMIT:- 8} --dynamic-resources
370370MCRC=$? # <--- we'll report back this code
371- if [[ " ${ALIEN_JDL_ADDTIMESERIESINMC} " != " 0" ]]; then
371+ if [[ " ${MCRC} " == " 0 " && " ${ ALIEN_JDL_ADDTIMESERIESINMC}" != " 0" ]]; then
372372 # Default value is 1 so this is run by default.
373373 echo_info " Running TPC time series"
374374 ${O2DPG_ROOT} /MC/bin/o2_dpg_workflow_runner.py -f workflow.json -tt tpctimes
375+ # Note: We could maybe avoid this if-else by including `tpctimes` directly in the workflow-targets above
375376fi
376377
377- [[ ! -z " ${DISABLE_QC} " ]] && echo_info " QC is disabled, skip it."
378+ [[ -n " ${DISABLE_QC} " ]] && echo_info " QC is disabled, skip it."
378379
379- if [[ -z " ${DISABLE_QC} " && " ${MCRC} " = " 0" && " ${remainingargs} " == * " --include-local-qc" * ]] ; then
380+ if [[ -z " ${DISABLE_QC} " && " ${MCRC} " == " 0" && " ${remainingargs} " == * " --include-local-qc" * ]] ; then
380381 # do QC tasks
381382 echo_info " Doing QC"
382383 ${O2DPG_ROOT} /MC/bin/o2_dpg_workflow_runner.py -f workflow.json --target-labels QC --cpu-limit ${ALIEN_JDL_CPULIMIT:- 8} -k
You can’t perform that action at this time.
0 commit comments