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

Move cleanup to a pre-exit hook to handle cancel #172

Merged
merged 2 commits into from Sep 27, 2018
Merged

Conversation

lox
Copy link
Contributor

@lox lox commented Sep 19, 2018

Currently when a job is cancelled, it will kill the command hook and often docker-compose won't have time to cleanup. This moves the cancellation to a pre-exit hook to give it more time to run.

Closes #169.

Copy link
Contributor

@toolmantim toolmantim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏🏼

@robholland
Copy link
Contributor

Would be great to get this merged, it's causing build failures when the networks pile up.

@lox
Copy link
Contributor Author

lox commented Sep 26, 2018

Sorry for the delay @robholland, was doing some thinking about whether there was anything else this could break, but let's just merge it and see!

@lox lox merged commit 859c592 into master Sep 27, 2018
@lox lox deleted the cleanup-in-pre-exit branch September 27, 2018 03:42
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

3 participants