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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/service/supervisor/utilization_monitor.rb +1 -1
- data/lib/async/service/supervisor/version.rb +1 -1
- data/lib/async/service/supervisor/worker.rb +10 -2
- data/readme.md +4 -4
- data/releases.md +4 -0
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '029cb4427e2cee4272b2bb5d49700ece5cb157df2811801b67ae07cc038ee1ff'
|
|
4
|
+
data.tar.gz: 19805fd9a9c8b08dc4c616fa1c71b0e535f3e20d9269173e4c03edb4fd64d620
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 935ca7b2c54a90461933dc59fb98e0fbc198ee0b93243e252a3b7bb1a00893ae95d72a8987a5637afd12a4ff522bca60f3f843cd5115f02fd2f11890a510fe8e
|
|
7
|
+
data.tar.gz: af3a62820c3d169de534df5f5832ab2f9b75e975f0b086114d7ec7442261b74690da9ec4a822f0071e2e4c8b347e6c11e446858ebda86b9ba06193d44bba504e
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -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
|
-
|
|
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.
|
|
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.
|
|
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
|