Skip to content

Commit

Permalink
Merge pull request #11 from NarrativeScience/W-11894453/conditional-c…
Browse files Browse the repository at this point in the history
…ancel-fix

@W-11894453: BUG FIX - Conditional Logic Backwards
  • Loading branch information
ns-bdesimone authored Oct 12, 2022
2 parents 1930759 + e4c4e55 commit a203596
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/cancel-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ steps:
echo ${OUTPUT}
STATUS="$(echo "$OUTPUT" | jq -r .status -)"
if [[ "$STATUS" == 'canceled' ]]; then
# Make sure the job was acutally cancelled - if not wait.
if [[ "$STATUS" != 'canceled' ]]; then
# This means the job was cancelled but for some reason the current script is
# still running. Wait a few seconds to let it catch up then fail the job to
# prevent downstream jobs from running unintentionally.
Expand Down

0 comments on commit a203596

Please sign in to comment.