File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,25 @@ for STAGE in $STAGES; do
295295 # boolean flag indicating if workflow completed successfully at all
296296 RC=$?
297297 SUCCESS=0
298+ # Check AOD production for ASYNC stage
299+ if [[ " $STAGE " = " ASYNC" ]]; then
300+ if [[ -f " AO2D.root" ]]; then
301+ aod_size=` stat -c%s AO2D.root`
302+ if [[ $aod_size -gt 0 ]]; then
303+ echo " AO2D file produced: AO2D.root (size: ${aod_size} bytes)"
304+ echo " aod_size_${STAGE} ,${TAG} value=${aod_size} " >> ${METRICFILE}
305+ else
306+ echo " ERROR: AO2D file (AO2D.root) exists but is empty"
307+ echo " aod_size_${STAGE} ,${TAG} value=0" >> ${METRICFILE}
308+ exit 1
309+ fi
310+ else
311+ echo " ERROR: AO2D file (AO2D.root) was not produced in ASYNC stage"
312+ echo " aod_size_${STAGE} ,${TAG} value=0" >> ${METRICFILE}
313+ exit 1
314+ fi
315+ fi
316+
298317 [[ -f " ${logfile} _done" ]] && [[ " $RC " = 0 ]] && SUCCESS=1
299318 echo " success_${STAGE} ,${TAG} value=${SUCCESS} " >> ${METRICFILE}
300319
You can’t perform that action at this time.
0 commit comments