Skip to content

Graceful job termination #26311

Answered by BrightRan
jupe asked this question in Actions
Jul 3, 2020 · 17 comments · 14 replies
Discussion options

You must be logged in to vote

@jupe,

According the introduction from the engineering team, after the user click “Cancel workflow”:

  • The server will re-evaluate job-if condition on all running jobs.

  • If the job condition is always(), it will not get canceled.

  • For the rest of the jobs that need cancellation, the server will send a cancellation message to all the runners.

  • Each runner has 5 minutes to finish the cancellation process before the server force terminate the job.

  • The runner will re-evaluate if condition on the current running step.

  • If the step condition is always(), it will not get canceled.

  • Otherwise, the runner will send Ctrl-C to the action entry process (node for javascript action, docker for c…

Replies: 17 comments 14 replies

Comment options

You must be logged in to vote
1 reply
@lundstrj
Comment options

Comment options

You must be logged in to vote
3 replies
@briceburg
Comment options

@justinmchase
Comment options

@justinmchase
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@briceburg
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@briceburg
Comment options

@ringerc
Comment options

Comment options

You must be logged in to vote
1 reply
@ringerc
Comment options

Comment options

You must be logged in to vote
3 replies
@ringerc
Comment options

@jsoref
Comment options

@gerbyzation
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@justinmchase
Comment options

@breathe
Comment options

Comment options

You must be logged in to vote
1 reply
@r34son
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment