-
Notifications
You must be signed in to change notification settings - Fork 130
fix(pegboard): fix container runner orphaning #2575
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
fix(pegboard): fix container runner orphaning #2575
Conversation
683f674 to
a25be6b
Compare
Deploying rivet with
|
| Latest commit: |
9a559a0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a4a1efa3.rivet.pages.dev |
| Branch Preview URL: | https://graphite-base-2532.rivet.pages.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Implements critical fixes to prevent container orphaning in the Pegboard system by improving container cleanup and adding parent process death handling.
- Modified container name format in
packages/edge/infra/client/manager/src/actor/setup.rsto include generation number ({actor_id}-{generation}) for precise container cleanup - Added PDEATHSIG configuration in
packages/edge/infra/client/container-runner/src/container.rsto ensure child containers are killed if parent process dies unexpectedly - Implemented pre-execution hooks for container processes using nix crate to handle parent death signals properly
2 files reviewed, 1 comment
Edit PR Review Bot Settings | Greptile
| match Command::new("runc") | ||
| .arg("delete") | ||
| .arg("--force") | ||
| .arg(self.actor_id.to_string()) | ||
| .arg(format!("{}-{}", self.actor_id, self.generation)) | ||
| .output() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Ensures correct container instance is deleted when multiple generations exist, preventing orphaned containers
a25be6b to
9a559a0
Compare
Deploying rivet-hub with
|
| Latest commit: |
9a559a0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7eb5cc72.rivet-hub-7jb.pages.dev |
| Branch Preview URL: | https://graphite-base-2532.rivet-hub-7jb.pages.dev |
Merge activity
|
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->

Changes