Skip to content

Commit 0b48fc4

Browse files
committed
small fixes for GRID utils
1 parent c4bafe9 commit 0b48fc4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

GRID/utils/fetch_output_onfailure.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ RecycleBase=""
2525
for ((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
3333
done
3434

3535
# wait a bit to allow propagation of "registerOutput"

GRID/utils/querymasterjob.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ erroredjobs=${tokens[8]}
2929
echo "MasterID $masterid"
3030
echo "TotalJobs $totaljobs"
3131
echo "DoneJobs $donejobs"
32-
echo "RunningJobs $donejobs"
32+
echo "RunningJobs $runningjobs"
3333
echo "ErroredJobs $erroredjobs"

0 commit comments

Comments
 (0)