From 7107204582c31022f0b5a23f142b740b382af163 Mon Sep 17 00:00:00 2001 From: swenzel Date: Mon, 10 Jun 2024 22:17:39 +0200 Subject: [PATCH] Fix return code in grid_submit --- GRID/utils/grid_submit.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GRID/utils/grid_submit.sh b/GRID/utils/grid_submit.sh index 0a9fd83cf..d8fb95397 100755 --- a/GRID/utils/grid_submit.sh +++ b/GRID/utils/grid_submit.sh @@ -576,12 +576,14 @@ export PATH=$PATH:$PWD # source the actual job script from the work dir chmod +x ./alien_jobscript.sh ./alien_jobscript.sh +# fetch the return code +RC=$? # just to be sure that we get the logs (temporarily disabled since the copy seems to hang sometimes) #cp alien_log_${ALIEN_PROC_ID:-0}.txt logtmp_${ALIEN_PROC_ID:-0}.txt #[ "${ALIEN_JOB_OUTPUTDIR}" ] && upload_to_Alien logtmp_${ALIEN_PROC_ID:-0}.txt ${ALIEN_JOB_OUTPUTDIR}/ -echo "Job done" +echo "Job done ... exiting with ${RC}" # We need to exit for the ALIEN JOB HANDLER! -exit 0 +exit ${RC}