Skip to content

Commit 7107204

Browse files
committed
Fix return code in grid_submit
1 parent 83efae6 commit 7107204

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

GRID/utils/grid_submit.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,12 +576,14 @@ export PATH=$PATH:$PWD
576576
# source the actual job script from the work dir
577577
chmod +x ./alien_jobscript.sh
578578
./alien_jobscript.sh
579+
# fetch the return code
580+
RC=$?
579581

580582
# just to be sure that we get the logs (temporarily disabled since the copy seems to hang sometimes)
581583
#cp alien_log_${ALIEN_PROC_ID:-0}.txt logtmp_${ALIEN_PROC_ID:-0}.txt
582584
#[ "${ALIEN_JOB_OUTPUTDIR}" ] && upload_to_Alien logtmp_${ALIEN_PROC_ID:-0}.txt ${ALIEN_JOB_OUTPUTDIR}/
583585

584-
echo "Job done"
586+
echo "Job done ... exiting with ${RC}"
585587

586588
# We need to exit for the ALIEN JOB HANDLER!
587-
exit 0
589+
exit ${RC}

0 commit comments

Comments
 (0)