Skip to content

Commit 78e40d8

Browse files
committed
anchorMC: Don't execute TPC timeseries if there was a failure
1 parent 075a360 commit 78e40d8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

MC/run/ANCHOR/anchorMC.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
370370
MCRC=$? # <--- 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
375376
fi
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

0 commit comments

Comments
 (0)