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

Cleanup running containers on the Control-C signal #422

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

Conversation

ammernico
Copy link
Collaborator

  • Add the signal feature to tokio to interrupt and handle the Control-C signal in Butido.
  • Add Control-C signal handling into the Orchestrator.
  • Implement Drop on the JobHandle to ensure container cleanup.

This is a working draft pr for testing purposes and still missing some features.

- Add the `signal` feature to `tokio` to interrupt and handle the
  Control-C signal in Butido.
- Add Control-C signal handling into the `Orchestrator`.
- Implement `Drop` on the `JobHandle` to ensure container cleanup.

This is a working draft pr for testing purposes and still missing
some features.

Signed-off-by: Nico Steinle <[email protected]>
@christophprokop
Copy link
Collaborator

Tested while multiple containers were running on all build hosts.
All containeres were successfully stopped after just a few seconds.
Nice! :)

@christophprokop christophprokop added the prerelease PRs which are merged to staging branch but not in main/master label Oct 1, 2024
@primeos-work primeos-work linked an issue Oct 7, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prerelease PRs which are merged to staging branch but not in main/master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cleanup job for running containers
2 participants