Skip to content

Commit

Permalink
our scripts run too fast so we never saw this before - now CCI APIs t…
Browse files Browse the repository at this point in the history
…ake longer to cancel
  • Loading branch information
ns-bdesimone committed Oct 12, 2022
1 parent 1930759 commit e4c4e55
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 e4c4e55

Please sign in to comment.