File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ RecycleBase=""
2525for (( i = 0 ; i < job_number; i++ )) ; do
2626 jobid=${FAILEDSUBJOBIDS[i]}
2727 if [ ! " ${RecycleBase} " ]; then
28- RecycleOutputDir=$( alien.py ps --trace ${jobid} | awk ' /Going to uploadOutputFiles/' | sed ' s/.*outputDir=//' | sed ' s/)//' )
28+ RecycleOutputDir=$( alien.py ps --trace ${jobid} | awk ' /Going to uploadOutputFiles/' | sed ' s/.*outputDir=//' | sed ' s/)//' | sort -u | head -n1 )
2929 # /alice/cern.ch/user/a/aliprod/recycle/alien-job-2974093751
3030 RecycleBase=${RecycleOutputDir% -${jobid} } # Removes the ${jobid} and yields the recycle base path
3131 fi
32- $( alien.py registerOutput ${jobid} ) 2 > /dev/null
32+ alien.py registerOutput ${jobid} > /dev/null 2>&1
3333done
3434
3535# wait a bit to allow propagation of "registerOutput"
Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ erroredjobs=${tokens[8]}
2929echo " MasterID $masterid "
3030echo " TotalJobs $totaljobs "
3131echo " DoneJobs $donejobs "
32- echo " RunningJobs $donejobs "
32+ echo " RunningJobs $runningjobs "
3333echo " ErroredJobs $erroredjobs "
You can’t perform that action at this time.
0 commit comments