Skip to content

Commit

Permalink
fix: fix wait-for-jobs boolean params (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankorstore-haddowg authored Mar 15, 2023
1 parent f07f41a commit 0af54f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/wait-for-job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ do
fi
if [[ "$JOB_STATUS" != "queued" && "$JOB_STATUS" != "running" && "$JOB_STATUS" != "not_running" ]]; then
echo "Job $JOB_NAME has completed! Status: $JOB_STATUS"
if [ "$JOB_STATUS" != "success" ] && $CHECK_FOR_FAILURE; then
if [ "$JOB_STATUS" != "success" ] && [ "$CHECK_FOR_FAILURE" = 1 ]; then
echo "The $JOB_NAME job failed, failing this job.";
exit 1;
fi
Expand All @@ -57,7 +57,7 @@ do
fi

if (( CURRENT_WAIT_TIME > MAX_WAIT_TIME )); then
if $CONTINUE_ON_TIMEOUT; then
if [ "$CONTINUE_ON_TIMEOUT" = 1 ]; then
echo "Max wait timout reached! Proceeding with further steps";
break
else
Expand Down

0 comments on commit 0af54f5

Please sign in to comment.