async-container-supervisor 0.5.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93e0e900670c190c3e7273139be86251e2545b2a0964fb0f2b2a36ea1d5332b3
4
- data.tar.gz: 197597b0387af67fe3f01cf191cb003b66847ac4b0acd547592ad89825c9adbb
3
+ metadata.gz: 6fee2b80a7228f9c35664c63e1c33093cb768e5c964e52f595465585bea84831
4
+ data.tar.gz: 384a75fb6affd59de5d91a169fe1094515079a938e44304375d786e07cff930b
5
5
  SHA512:
6
- metadata.gz: 29dcd9708dbb7fd0353d95ca17ff21e71bc16ae268ffad9c95d264f5eb07cfad238d9168231a3f42c3b45471f043f10677ea1d7f3192c1f964ac49b830babeb9
7
- data.tar.gz: ecfe4b2d7c78208391c7e2ccfe0a2ba09898335b4c5069bbd01fb001b759df6750901158c66cc4b5a3558de8a62b971a3a707c023ed6960d9a2645da9a8b4bbf
6
+ metadata.gz: f4f2dfad26d080569c54a432a6f83461525dde4f4ce0610e90a2b9563e2ebcfb1cf2ee253ab38a669d5a8c2e155b84cb3bb002f385980f5bbddad90664ca1077
7
+ data.tar.gz: 7695b0a3b6b4cecdb25fdcac2ebc55e5f401de4838af0280b9a6819a93e773d2436dc7dbea662b8a767950e8f9b3a3e9589853e99d778b085c5149240757379d
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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)
@@ -6,7 +6,7 @@
6
6
  module Async
7
7
  module Container
8
8
  module Supervisor
9
- VERSION = "0.5.2"
9
+ VERSION = "0.6.0"
10
10
  end
11
11
  end
12
12
  end
data/readme.md CHANGED
@@ -20,6 +20,10 @@ Please see the [project documentation](https://socketry.github.io/async-containe
20
20
 
21
21
  Please see the [project releases](https://socketry.github.io/async-container-supervisor/releases/index) for all releases.
22
22
 
23
+ ### v0.6.0
24
+
25
+ - Add `async:container:supervisor:reload` command to restart the container (blue/green deployment).
26
+
23
27
  ### v0.1.0
24
28
 
25
29
  - Initial implementation.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.6.0
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.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-container-supervisor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  requirements: []
151
- rubygems_version: 3.7.0.dev
151
+ rubygems_version: 3.6.7
152
152
  specification_version: 4
153
153
  summary: A supervisor for managing multiple container processes.
154
154
  test_files: []
metadata.gz.sig CHANGED
Binary file