Skip to content

Commit

Permalink
Fix return code in grid_submit
Browse files Browse the repository at this point in the history
  • Loading branch information
sawenzel committed Jun 11, 2024
1 parent 83efae6 commit 7107204
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions GRID/utils/grid_submit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 7107204

Please sign in to comment.