We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1930759 + e4c4e55 commit a203596Copy full SHA for a203596
src/commands/cancel-job.yml
@@ -35,7 +35,8 @@ steps:
35
echo ${OUTPUT}
36
37
STATUS="$(echo "$OUTPUT" | jq -r .status -)"
38
- if [[ "$STATUS" == 'canceled' ]]; then
+ # Make sure the job was acutally cancelled - if not wait.
39
+ if [[ "$STATUS" != 'canceled' ]]; then
40
# This means the job was cancelled but for some reason the current script is
41
# still running. Wait a few seconds to let it catch up then fail the job to
42
# prevent downstream jobs from running unintentionally.
0 commit comments