Skip to content
New issue

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

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

Already on GitHub? # to your account

[feature] post-exit hook #1363

Closed
zimbatm opened this issue Jan 21, 2021 · 1 comment
Closed

[feature] post-exit hook #1363

zimbatm opened this issue Jan 21, 2021 · 1 comment

Comments

@zimbatm
Copy link

zimbatm commented Jan 21, 2021

Problem statement

When build machines run out of disk space, news builds start failing.

Proposed solution

Add a hook that gets executed whenever a task exits, and before a new task can be scheduled. That hook should be disconnected from the previous build and not affect the task result, even it if fails.

With that in place, it will become possible to run cleanup tasks to free disk space. Check for the general health of the machine. Or even shutdown the agent so it won't accept new tasks.

@keithduncan
Copy link
Contributor

Thank you for filing this issue @zimbatm! I’m going to close this as a duplicate of #1111 for a single place to track inter-job health check hook which could run clean up tasks, feel free to follow along there 🎉

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants