Skip to content

Commit ea3f2ff

Browse files
sawenzelclaude
andcommitted
Also stop anchorMC on a truncated workflow printout
This extends the workflowconfig.log check to printouts that were cut off part-way. - Such jobs kept the anchored settings only for the first executables of the reco workflow. - The check now also requires the final o2-dpl-run line for every step. https://its.cern.ch/jira/browse/O2-7359 Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent dab364a commit ea3f2ff

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎MC/run/ANCHOR/anchorMC.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,11 @@ if [[ ! -f workflowconfig.log ]]; then
309309
echo "Workflowconfig.log file not found"
310310
exit 1
311311
fi
312-
# each reco step must have its workflow printout, otherwise the MC would run without the anchored reco settings
312+
# each reco step must have its complete workflow printout (ending with o2-dpl-run), otherwise the MC would run without the anchored reco settings
313313
NRECOSTEPS=$(grep -c "^Step [0-9])" workflowconfig.log)
314314
[[ ${NRECOSTEPS} -eq 0 ]] && NRECOSTEPS=1
315-
if [[ $(grep -c "#Workflow command" workflowconfig.log) -lt ${NRECOSTEPS} ]]; then
316-
echo_error "workflowconfig.log does not contain the reco workflow of every step. Exiting."
315+
if [[ $(grep -c "#Workflow command" workflowconfig.log) -lt ${NRECOSTEPS} || $(grep -c "^o2-dpl-run " workflowconfig.log) -lt ${NRECOSTEPS} ]]; then
316+
echo_error "workflowconfig.log does not contain the complete reco workflow of every step. Exiting."
317317
exit 1
318318
fi
319319

‎MC/run/ANCHOR/anchorMC_DataEmbedding.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,11 @@ if [[ ! -f workflowconfig.log ]]; then
315315
echo "Workflowconfig.log file not found"
316316
exit 1
317317
fi
318-
# each reco step must have its workflow printout, otherwise the MC would run without the anchored reco settings
318+
# each reco step must have its complete workflow printout (ending with o2-dpl-run), otherwise the MC would run without the anchored reco settings
319319
NRECOSTEPS=$(grep -c "^Step [0-9])" workflowconfig.log)
320320
[[ ${NRECOSTEPS} -eq 0 ]] && NRECOSTEPS=1
321-
if [[ $(grep -c "#Workflow command" workflowconfig.log) -lt ${NRECOSTEPS} ]]; then
322-
echo_error "workflowconfig.log does not contain the reco workflow of every step. Exiting."
321+
if [[ $(grep -c "#Workflow command" workflowconfig.log) -lt ${NRECOSTEPS} || $(grep -c "^o2-dpl-run " workflowconfig.log) -lt ${NRECOSTEPS} ]]; then
322+
echo_error "workflowconfig.log does not contain the complete reco workflow of every step. Exiting."
323323
exit 1
324324
fi
325325

0 commit comments

Comments
 (0)