File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,20 @@ def initialize(...)
99 require "async/container/supervisor"
1010end
1111
12+ # Restart the container, typically causing it to exit (the parent process should then restart it).
1213def restart
1314 client do |connection |
1415 connection . call ( do : :restart )
1516 end
1617end
1718
19+ # Reload the services gracefully, allowing them to reconfigure without dropping connections.
20+ def reload
21+ client do |connection |
22+ connection . call ( do : :restart , signal : :HUP )
23+ end
24+ end
25+
1826def status
1927 client do |connection |
2028 connection . call ( do : :status )
Original file line number Diff line number Diff line change 11# Releases
22
3+ ## Unreleased
4+
5+ - Add ` async:container:supervisor:reload ` command to restart the container (blue/green deployment).
6+
37## v0.1.0
48
59 - Initial implementation.
You can’t perform that action at this time.
0 commit comments