File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed
DATA/production/configurations/asyncReco Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -610,21 +610,23 @@ else
610610fi
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
629631if [[ $ALIEN_JDL_AODOFF != 1 ]]; then
630632 # flag to possibly enable Analysis QC
You can’t perform that action at this time.
0 commit comments