Skip to content

Commit 2b9b087

Browse files
Do not split the metrics, as it is too slow, unless requested
1 parent d479442 commit 2b9b087

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

DATA/production/configurations/asyncReco/async_pass.sh

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -610,21 +610,23 @@ else
610610
fi
611611

612612
# now extract all performance metrics
613-
IFS=$'\n'
614-
timeStart=`date +%s`
615-
for perfMetricsFiles in performanceMetrics.json performanceMetrics_1.json performanceMetrics_2.json performanceMetrics_3.json ; do
616-
suffix=`echo $perfMetricsFiles | sed 's/performanceMetrics\(.*\).json/\1/'`
617-
if [[ -f "performanceMetrics.json" ]]; then
618-
for workflow in `grep ': {' $perfMetricsFiles`; do
619-
strippedWorkflow=`echo $workflow | cut -d\" -f2`
620-
cat $perfMetricsFiles | jq '.'\"${strippedWorkflow}\"'' > ${strippedWorkflow}_metrics${suffix}.json
621-
done
622-
fi
623-
done
624-
timeEnd=`date +%s`
625-
timeUsed=$(( $timeUsed+$timeEnd-$timeStart ))
626-
delta=$(( $timeEnd-$timeStart ))
627-
echo "Time spent in splitting the metrics files = $delta s"
613+
if [[ $ALIEN_JDL_EXTRACTMETRICS == "1" ]]; then
614+
IFS=$'\n'
615+
timeStart=`date +%s`
616+
for perfMetricsFiles in performanceMetrics.json performanceMetrics_1.json performanceMetrics_2.json performanceMetrics_3.json ; do
617+
suffix=`echo $perfMetricsFiles | sed 's/performanceMetrics\(.*\).json/\1/'`
618+
if [[ -f "performanceMetrics.json" ]]; then
619+
for workflow in `grep ': {' $perfMetricsFiles`; do
620+
strippedWorkflow=`echo $workflow | cut -d\" -f2`
621+
cat $perfMetricsFiles | jq '.'\"${strippedWorkflow}\"'' > ${strippedWorkflow}_metrics${suffix}.json
622+
done
623+
fi
624+
done
625+
timeEnd=`date +%s`
626+
timeUsed=$(( $timeUsed+$timeEnd-$timeStart ))
627+
delta=$(( $timeEnd-$timeStart ))
628+
echo "Time spent in splitting the metrics files = $delta s"
629+
fi
628630

629631
if [[ $ALIEN_JDL_AODOFF != 1 ]]; then
630632
# flag to possibly enable Analysis QC

0 commit comments

Comments
 (0)