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(...)
9
9
require "async/container/supervisor"
10
10
end
11
11
12
+ # Restart the container, typically causing it to exit (the parent process should then restart it).
12
13
def restart
13
14
client do |connection |
14
15
connection . call ( do : :restart )
15
16
end
16
17
end
17
18
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
+
18
26
def status
19
27
client do |connection |
20
28
connection . call ( do : :status )
Original file line number Diff line number Diff line change 1
1
# Releases
2
2
3
+ ## Unreleased
4
+
5
+ - Add ` async:container:supervisor:reload ` command to restart the container (blue/green deployment).
6
+
3
7
## v0.1.0
4
8
5
9
- Initial implementation.
You can’t perform that action at this time.
0 commit comments