Skip to content
Snippets Groups Projects
Commit eb169796 authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Invert check on jobs_failed_status.log to end with a return code 0 instead of...

Invert check on jobs_failed_status.log to end with a return code 0 instead of one in case everything goes well.
parent 669c8411
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,7 @@ if [ "$STAGE" -eq 0 ]; then ...@@ -124,7 +124,7 @@ if [ "$STAGE" -eq 0 ]; then
autosubmit setstatus ${EXPID} -ft PREPARE_EXPERIMENT -t SUSPENDED -s -np autosubmit setstatus ${EXPID} -ft PREPARE_EXPERIMENT -t SUSPENDED -s -np
autosubmit run ${EXPID} autosubmit run ${EXPID}
# Check if there are failed jobs # Check if there are failed jobs
[ -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] && exit 1 [ ! -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] || exit 1
fi fi
if [ "$STAGE" -eq 1 ]; then if [ "$STAGE" -eq 1 ]; then
...@@ -133,7 +133,7 @@ if [ "$STAGE" -eq 1 ]; then ...@@ -133,7 +133,7 @@ if [ "$STAGE" -eq 1 ]; then
autosubmit setstatus ${EXPID} -ft "EXTPAR_FROM_IDEALIZED FG_ANA_FROM_IDEALIZED" -t SUSPENDED -s -np autosubmit setstatus ${EXPID} -ft "EXTPAR_FROM_IDEALIZED FG_ANA_FROM_IDEALIZED" -t SUSPENDED -s -np
autosubmit run ${EXPID} autosubmit run ${EXPID}
# Check if there are failed jobs # Check if there are failed jobs
[ -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] && exit 1 [ ! -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] || exit 1
fi fi
if [ "$STAGE" -eq 2 ]; then if [ "$STAGE" -eq 2 ]; then
...@@ -142,7 +142,7 @@ if [ "$STAGE" -eq 2 ]; then ...@@ -142,7 +142,7 @@ if [ "$STAGE" -eq 2 ]; then
autosubmit setstatus ${EXPID} -ft TRANSFER -t SUSPENDED -s -np autosubmit setstatus ${EXPID} -ft TRANSFER -t SUSPENDED -s -np
autosubmit run ${EXPID} autosubmit run ${EXPID}
# Check if there are failed jobs # Check if there are failed jobs
[ -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] && exit 1 [ ! -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] || exit 1
fi fi
if [ "$STAGE" -eq 3 ]; then if [ "$STAGE" -eq 3 ]; then
...@@ -150,5 +150,5 @@ if [ "$STAGE" -eq 3 ]; then ...@@ -150,5 +150,5 @@ if [ "$STAGE" -eq 3 ]; then
autosubmit setstatus ${EXPID} -fs SUSPENDED -t WAITING -s -np autosubmit setstatus ${EXPID} -fs SUSPENDED -t WAITING -s -np
autosubmit run ${EXPID} autosubmit run ${EXPID}
# Check if there are failed jobs # Check if there are failed jobs
[ -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] && exit 1 [ ! -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] || exit 1
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment