-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(conductor): respect shutdown signals during init (#1080)
## Summary Conductor now respects shutdown signals it receives during init. ## Background Conductor's task ignored shutdowns while still initializing. This meant that Conductor would hang for up to 30 seconds. ## Changes - refactor conductor's constituent long-running tasks to separate initialization and running - listen for the shutdown signal in all of conductor's tasks ## Testing Run conductor with endpoints that hang indefinitely and sending it SIGTERM. Observe that conductor shuts down quickly. The main operation of conductor is unaffected on the happy path: all blackbox tests run to completion. A proper test for the shutdown logic will be implemented in a follow-up refactor similar to #889
- Loading branch information
1 parent
b83f00f
commit 234829f
Showing
5 changed files
with
290 additions
and
153 deletions.
There are no files selected for viewing
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
Oops, something went wrong.