async-service-supervisor 0.13.1 → 0.14.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: 40d92dff9ef46f5a5864fb8c013d3756c89b0941568cbb8fad482b3d5980c26e
4
- data.tar.gz: b5ca32ff2ade3e7e07bc58e4b9a52d7dabb8df87f33001907fec2032ad9977da
3
+ metadata.gz: '029cb4427e2cee4272b2bb5d49700ece5cb157df2811801b67ae07cc038ee1ff'
4
+ data.tar.gz: 19805fd9a9c8b08dc4c616fa1c71b0e535f3e20d9269173e4c03edb4fd64d620
5
5
  SHA512:
6
- metadata.gz: 66e3fe09be98818698e57e38070e55ef5fad22123ddeda1c15685426f5a90ab37d77b8a2da1f10ae2ebf69549f8c402870b6c535f30505b5db092e446f052c6f
7
- data.tar.gz: a52324ca442e95f5161a93ebc562eebfb23838c59452a0e0d517d99686f6e7f17e696d7a1c386f34dd193252c33a96a2ff2ee026becd96a32bb55c09d7e1e967
6
+ metadata.gz: 935ca7b2c54a90461933dc59fb98e0fbc198ee0b93243e252a3b7bb1a00893ae95d72a8987a5637afd12a4ff522bca60f3f843cd5115f02fd2f11890a510fe8e
7
+ data.tar.gz: af3a62820c3d169de534df5f5832ab2f9b75e975f0b086114d7ec7442261b74690da9ec4a822f0071e2e4c8b347e6c11e446858ebda86b9ba06193d44bba504e
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2025, by Samuel Williams.
4
+ # Copyright, 2026, by Samuel Williams.
5
5
 
6
6
  require "set"
7
7
 
@@ -9,7 +9,7 @@ module Async
9
9
  module Service
10
10
  # @namespace
11
11
  module Supervisor
12
- VERSION = "0.13.1"
12
+ VERSION = "0.14.0"
13
13
  end
14
14
  end
15
15
  end
@@ -76,12 +76,20 @@ module Async
76
76
  observer.schema.to_a
77
77
  end
78
78
 
79
+ # Create the worker controller for this worker.
80
+ #
81
+ # Override this method to provide a custom worker controller that exposes additional RPCs to the supervisor.
82
+ #
83
+ # @returns [WorkerController] The worker controller instance.
84
+ def make_controller
85
+ WorkerController.new(self)
86
+ end
87
+
79
88
  protected def connected!(connection)
80
89
  super
81
90
 
82
91
  # Create and bind worker controller
83
- worker_controller = WorkerController.new(self)
84
- worker_proxy = connection.bind(:worker, worker_controller)
92
+ worker_proxy = connection.bind(:worker, make_controller)
85
93
 
86
94
  # Register the worker with the supervisor
87
95
  # The supervisor allocates a unique ID and returns it
data/readme.md CHANGED
@@ -28,6 +28,10 @@ Please see the [project documentation](https://socketry.github.io/async-service-
28
28
 
29
29
  Please see the [project releases](https://socketry.github.io/async-service-supervisor/releases/index) for all releases.
30
30
 
31
+ ### v0.14.0
32
+
33
+ - Add `Worker#make_controller` as an override point for providing a custom worker controller with additional RPCs.
34
+
31
35
  ### v0.13.1
32
36
 
33
37
  - Unlink shared memory file before opening on supervisor restart, preventing SIGBUS when workers still have the file mapped.
@@ -73,10 +77,6 @@ Please see the [project releases](https://socketry.github.io/async-service-super
73
77
 
74
78
  - If a memory leak is detected, sample memory usage for 60 seconds before exiting.
75
79
 
76
- ### v0.6.4
77
-
78
- - Make client task (in supervised worker) transient, so that it doesn't keep the reactor alive unnecessarily. It also won't be stopped by default when SIGINT is received, so that the worker will remain connected to the supervisor until the worker is completely terminated.
79
-
80
80
  ## Contributing
81
81
 
82
82
  We welcome contributions to this project.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.14.0
4
+
5
+ - Add `Worker#make_controller` as an override point for providing a custom worker controller with additional RPCs.
6
+
3
7
  ## v0.13.1
4
8
 
5
9
  - Unlink shared memory file before opening on supervisor restart, preventing SIGBUS when workers still have the file mapped.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-service-supervisor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  - !ruby/object:Gem::Version
186
186
  version: '0'
187
187
  requirements: []
188
- rubygems_version: 4.0.3
188
+ rubygems_version: 4.0.6
189
189
  specification_version: 4
190
190
  summary: A supervisor for managing multiple container processes.
191
191
  test_files: []
metadata.gz.sig CHANGED
Binary file