async-container 0.32.0 → 0.32.1
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/container/controller.rb +15 -7
- data/lib/async/container/version.rb +1 -1
- data/readme.md +4 -4
- data/releases.md +4 -0
- data.tar.gz.sig +0 -0
- metadata +1 -1
- 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: 77daf5246650362c76300eb71c5cf11459ff18967e273ba5de5ec6da3816a0f7
|
|
4
|
+
data.tar.gz: 9083168708fbce12c26900c2f4fa725845db8c67d7c94016c48ad3adbbdb5b5b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d293fd77c34c01ca982bdaf3be8f1c8216eed1552364b036782ecd12c259053270e837a95027374c9e8973d590043329bd00b31d1efe33743f0e5bf0e8af89a8
|
|
7
|
+
data.tar.gz: 7a7073417f66670f9bc686816bfdf35a290f3bc590a9396b1465f6dd1a7c2f27a679145dbbd487c2547ae69d0ae440f65b85a5d7fc63f72cb4cba5df1ea824ed
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -24,19 +24,30 @@ module Async
|
|
|
24
24
|
# Initialize the controller.
|
|
25
25
|
# @parameter notify [Notify::Client] A client used for process readiness notifications.
|
|
26
26
|
def initialize(notify: Notify.open!, container_class: Container, graceful_stop: true)
|
|
27
|
-
@
|
|
27
|
+
@notify = notify
|
|
28
28
|
@container_class = container_class
|
|
29
|
+
@graceful_stop = graceful_stop
|
|
29
30
|
|
|
30
|
-
@
|
|
31
|
+
@container = nil
|
|
31
32
|
@signals = {}
|
|
32
33
|
|
|
33
34
|
self.trap(SIGHUP) do
|
|
34
35
|
self.restart
|
|
35
36
|
end
|
|
36
|
-
|
|
37
|
-
@graceful_stop = graceful_stop
|
|
38
37
|
end
|
|
39
38
|
|
|
39
|
+
# The notify client used by the controller.
|
|
40
|
+
attr :notify
|
|
41
|
+
|
|
42
|
+
# The container class used by the controller.
|
|
43
|
+
attr :container_class
|
|
44
|
+
|
|
45
|
+
# The graceful stop flag used by the controller.
|
|
46
|
+
attr :graceful_stop
|
|
47
|
+
|
|
48
|
+
# The current container being managed by the controller.
|
|
49
|
+
attr :container
|
|
50
|
+
|
|
40
51
|
# The state of the controller.
|
|
41
52
|
# @returns [String]
|
|
42
53
|
def state_string
|
|
@@ -60,9 +71,6 @@ module Async
|
|
|
60
71
|
@signals[signal] = block
|
|
61
72
|
end
|
|
62
73
|
|
|
63
|
-
# The current container being managed by the controller.
|
|
64
|
-
attr :container
|
|
65
|
-
|
|
66
74
|
# Create a policy for managing child lifecycle events.
|
|
67
75
|
# Can be overridden by a sub-class to provide a custom policy.
|
|
68
76
|
# @returns [Policy] The policy to use for the container.
|
data/readme.md
CHANGED
|
@@ -28,6 +28,10 @@ Please see the [project documentation](https://socketry.github.io/async-containe
|
|
|
28
28
|
|
|
29
29
|
Please see the [project releases](https://socketry.github.io/async-container/releases/index) for all releases.
|
|
30
30
|
|
|
31
|
+
### v0.32.1
|
|
32
|
+
|
|
33
|
+
- Expose `Async::Container::Controller` `#notify`, `#container_class`, and `#graceful_stop` for testing.
|
|
34
|
+
|
|
31
35
|
### v0.32.0
|
|
32
36
|
|
|
33
37
|
- Minor **breaking** changes to `Async::Container::Policy` interface.
|
|
@@ -70,10 +74,6 @@ Please see the [project releases](https://socketry.github.io/async-container/rel
|
|
|
70
74
|
|
|
71
75
|
- More logging, especially around failure cases.
|
|
72
76
|
|
|
73
|
-
### v0.27.1
|
|
74
|
-
|
|
75
|
-
- Log caller and timeout when waiting on a child instance to exit, if it blocks.
|
|
76
|
-
|
|
77
77
|
## Contributing
|
|
78
78
|
|
|
79
79
|
We welcome contributions to this project.
|
data/releases.md
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|