-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(conductor): don't panic while shutting down (#846)
## Summary Fixes conductor panicking during shutdown. ## Background Conductor was using a tokio `LocalSet` together with an `Rc` to run its shutdown logic. This was entirely unnecessary and panicky (since the `Rc` was cloned into multiple tasks, which was obviously wrong). Note that this PR does not address conductor ignoring `SIGTERM` during initialization. ## Changes - Simplify the awkward `LocalSet` + `Rc` to shutdown conductor tasks - Simplify reporting task failure and exist ## Testing This needs to be tested end to end (since conductor receives an external signal). ## Related Issues Closes #828
- Loading branch information
1 parent
8620e83
commit da01133
Showing
5 changed files
with
64 additions
and
104 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters