Skip to content

Commit a203596

Browse files
authored
Merge pull request #11 from NarrativeScience/W-11894453/conditional-cancel-fix
@W-11894453: BUG FIX - Conditional Logic Backwards
2 parents 1930759 + e4c4e55 commit a203596

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/cancel-job.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ steps:
3535
echo ${OUTPUT}
3636
3737
STATUS="$(echo "$OUTPUT" | jq -r .status -)"
38-
if [[ "$STATUS" == 'canceled' ]]; then
38+
# Make sure the job was acutally cancelled - if not wait.
39+
if [[ "$STATUS" != 'canceled' ]]; then
3940
# This means the job was cancelled but for some reason the current script is
4041
# still running. Wait a few seconds to let it catch up then fail the job to
4142
# prevent downstream jobs from running unintentionally.

0 commit comments

Comments
 (0)