Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow signal agent sends to bootstrap on cancel to be customized #1041

Merged
merged 3 commits into from Jul 29, 2019

Conversation

lox
Copy link
Contributor

@lox lox commented Jul 15, 2019

Currently the agent sends a SIGTERM to the bootstrap on user cancellation of a job.

This adds cancel-signal which accepts signals in the form of SIGTERM, SIGHUP, etc.

The default will remain SIGTERM until the next major version and then it will be SIGINT.

/cc @DazWorrall

@DazWorrall
Copy link
Contributor

Thanks @lox, glad to see this coming. Did we add configurable timeout duration already or is that still TBD?

@lox
Copy link
Contributor Author

lox commented Jul 20, 2019

@DazWorrall cancel-grace-period exists, but it's agent-wide.

@lox lox requested a review from a team July 21, 2019 07:50
@lox lox merged commit 9051b0d into master Jul 29, 2019
@lox lox deleted the cancel-signal branch July 29, 2019 03:24
GaryPWhite added a commit to GaryPWhite/docs that referenced this pull request Oct 21, 2019
buildkite/agent#1041

noted that there was a duplicate of `BUILDKITE_CANCEL_GRACE_PERIOD` -- putting a proper definition for `BUILDKITE_CANCEL_SIGNAL`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants