-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: shutdown in reverse dependency order
address code review fix: unused variable refactor: smaller functions test: shutdown in order Add shutdown order test fix: tests
- Loading branch information
1 parent
82b51ba
commit dc044a5
Showing
7 changed files
with
293 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: "0.5" | ||
|
||
log_level: debug | ||
log_length: 1000 | ||
|
||
processes: | ||
procA: | ||
command: | | ||
trap 'echo "A: exit"' SIGTERM | ||
echo "A: starting" | ||
sleep 3 | ||
procB: | ||
command: | | ||
trap 'echo "B: exit"' SIGTERM | ||
echo "B: starting" | ||
sleep 3 | ||
depends_on: | ||
procA: | ||
condition: process_started | ||
|
||
procC: | ||
command: | | ||
trap 'echo "C: exit"' SIGTERM | ||
echo "C: starting" | ||
sleep 3 | ||
depends_on: | ||
procB: | ||
condition: process_started |
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
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.