-
Notifications
You must be signed in to change notification settings - Fork 440
tasks: fix broken restarts for task processes in process-compose #2164
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
Conversation
Wait on child processes instead of sleeping. This is important to properly reap child processes. Fixes an issue where process-compose would fail to restart the task runner.
Do the thing where we re-trigger the default handler to get the correct signal behaviour.
🔍 Suggested ReviewersBased on git blame analysis of the changed lines, the following contributors have significant experience with the modified code:
Please consider reviewing this PR as you have authored significant portions of the code being modified. Your expertise would be valuable! 🙏 This comment was automatically generated by git-blame-auto-reviewer Last updated: 2025-09-18T02:04:57.591Z |
|
Claude finished @sandydoo's task —— View job PR Review CompleteI've reviewed this PR that implements proper Unix signal handling for task process restarts. Here's my analysis focusing on areas for improvement: Todo List:
Critical Safety Issues1. Unsafe Signal Handling in
|
|
This will be painful to resolve with #2060 that removes this logic completely :( |
It'll be fine. The child shutdown will merge without issues. As for the top-level signal handling, I think #2060 removed a bit too much. I only see ctrl+c handling left, which isn't enough. I don't see any issue integrating the tokio graceful stuff with this. |
Fixes #2141.