Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

What Signal Does Bitbucket Pipelines Send to a Step When a Pipeline is Stopped?

Johnathan Gilday April 27, 2022

When a Pipeline is running, and a user requests that it be stopped, what exactly happens to any steps that are currently running? Do they receive a SIGINT? A SIGKILL? Is there a grace period before a SIGKILL? Is it configurable?

2 answers

1 accepted

1 vote
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 5, 2022

Hello @Johnathan Gilday ,

When a pipeline is stopped, either by the API or UI, the running step will be stopped, and the running processes within that step will be forcefully killed, like a kill -9 command, where it sends a SIGKILL to the processes and forces them to terminate.

Hope that helps to address your question.

Thank you, @Johnathan Gilday .

Kind Regards,

Patrik S

0 votes
Eduardo Asenjo April 27, 2022

I've never tried this before, but I wonder if the `after-script` is called on STOP as well or not.

 

https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/#after-script

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events