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 batches 30s of cleanup time on external kills #984

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nemacysts
Copy link
Member

If a batch is killed by Tron (i.e., hitting max_runtime) or a human (i.e., tronctl kill), give them 30s to handle any cleanup.

Batches that wish to use this feature will need to catch the SIGTERM signal and do whatever cleanup they'd like to do in that handler :)

NOTE: this requires Yelp/task_processing#218

If a batch is killed by Tron (i.e., hitting max_runtime) or a human
(i.e., tronctl kill), give them 30s to handle any cleanup.

Batches that wish to use this feature will need to catch the SIGTERM
signal and do whatever cleanup they'd like to do in that handler :)
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.

1 participant