We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83efae6 commit 7107204Copy full SHA for 7107204
GRID/utils/grid_submit.sh
@@ -576,12 +576,14 @@ export PATH=$PATH:$PWD
576
# source the actual job script from the work dir
577
chmod +x ./alien_jobscript.sh
578
./alien_jobscript.sh
579
+# fetch the return code
580
+RC=$?
581
582
# just to be sure that we get the logs (temporarily disabled since the copy seems to hang sometimes)
583
#cp alien_log_${ALIEN_PROC_ID:-0}.txt logtmp_${ALIEN_PROC_ID:-0}.txt
584
#[ "${ALIEN_JOB_OUTPUTDIR}" ] && upload_to_Alien logtmp_${ALIEN_PROC_ID:-0}.txt ${ALIEN_JOB_OUTPUTDIR}/
585
-echo "Job done"
586
+echo "Job done ... exiting with ${RC}"
587
588
# We need to exit for the ALIEN JOB HANDLER!
-exit 0
589
+exit ${RC}
0 commit comments