async-container 0.34.1 → 0.34.2

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: 24cae4f000d76b4033e8999f22797b54018096a94f363f814790b360f78b429f
4
- data.tar.gz: d4f348bc43b4eeb9296bf35075a38a3173460ef0828833a46851e1f32a1e0980
3
+ metadata.gz: 1c5506e1e43a28f8d2e9d47e49342821762eaab865a12de832a0517a6675f4de
4
+ data.tar.gz: b36a0515e6621c9cbc26aa749a7b181977d8fc331e2f17fd339004eac812048b
5
5
  SHA512:
6
- metadata.gz: d2fa294029f4ee0d799850fb5e9f93c51f1cf7e9d1dcea2b6adb68b271b68b8acbcb1711a63dbdc0357e896b4609751420edad10bc2f8a19f47c87ed8f461a09
7
- data.tar.gz: 28c8868284e8ef7c6f762bb1de5847d710ae57564e505df02ba85cd0c0c9f4ad915f19a15c10dc75ce373196bd51cccca9a96d2f8b4b1ff950737c799b4df06a
6
+ metadata.gz: 467d2c01e371653e65b545f0bf8ffcfc41d0551188c62ea2268988b58df5cf33a1221d50dd217046121cfdd793cecf42d92318c0d15016e03691b1add86a6574
7
+ data.tar.gz: 5c3b36fc6d4aa9dcc25408d183e9d3fdd47cd68a58f8e27f13f4ce259226167d3712c176c27eebda9654f7e467fb630dc86ef700ed2e8d7f468418d9857c021e
checksums.yaml.gz.sig CHANGED
Binary file
@@ -111,7 +111,7 @@ module Async
111
111
  self.restart
112
112
  end
113
113
 
114
- Console.info(self, "Controller started...")
114
+ Console.info(self, "Controller started.")
115
115
  end
116
116
 
117
117
  # Stop the container if it's running.
@@ -170,8 +170,6 @@ module Async
170
170
  rescue => error
171
171
  Console.error(self, "Error while stopping container!", exception: error)
172
172
  raise
173
- ensure
174
- @stopping = false
175
173
  end
176
174
 
177
175
  protected def health_check_failed(child, age_clock, health_check_timeout)
@@ -35,9 +35,6 @@ module Async
35
35
 
36
36
  # The running fibers, indexed by IO:
37
37
  @running = {}
38
-
39
- # This queue allows us to wait for processes to complete, without spawning new processes as a result.
40
- @queue = nil
41
38
  end
42
39
 
43
40
  # @returns [String] A human-readable representation of the group.
@@ -73,16 +70,11 @@ module Async
73
70
 
74
71
  # Sleep for at most the specified duration until some state change occurs.
75
72
  def sleep(duration)
76
- self.resume
77
- self.suspend
78
-
79
73
  self.wait_for_children(duration)
80
74
  end
81
75
 
82
76
  # Begin any outstanding queued processes and wait for them indefinitely.
83
77
  def wait
84
- self.resume
85
-
86
78
  with_health_checks do |duration|
87
79
  self.wait_for_children(duration)
88
80
  end
@@ -256,28 +248,6 @@ module Async
256
248
  return readable
257
249
  end
258
250
  end
259
-
260
- def yield
261
- if @queue
262
- fiber = Fiber.current
263
-
264
- @queue << fiber
265
- Fiber.yield
266
- end
267
- end
268
-
269
- def suspend
270
- @queue ||= []
271
- end
272
-
273
- def resume
274
- if @queue
275
- queue = @queue
276
- @queue = nil
277
-
278
- queue.each(&:resume)
279
- end
280
- end
281
251
  end
282
252
  end
283
253
  end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module Container
8
- VERSION = "0.34.1"
8
+ VERSION = "0.34.2"
9
9
  end
10
10
  end
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.34.2
32
+
33
+ - Once a container is stopped, it stays stopped.
34
+
31
35
  ### v0.34.0
32
36
 
33
37
  - Add `Async::Container::Generic#stopping?` so that policies can more accurately track the state of the container.
@@ -69,10 +73,6 @@ Please see the [project releases](https://socketry.github.io/async-container/rel
69
73
 
70
74
  - Make the child handling more robust in the face of exceptions.
71
75
 
72
- ### v0.27.4
73
-
74
- - Fix race condition where `wait_for` could modify `@running` while it was being iterated over (`each_value`) during health checks.
75
-
76
76
  ## Contributing
77
77
 
78
78
  We welcome contributions to this project.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.34.2
4
+
5
+ - Once a container is stopped, it stays stopped.
6
+
3
7
  ## v0.34.0
4
8
 
5
9
  - Add `Async::Container::Generic#stopping?` so that policies can more accurately track the state of the container.
data.tar.gz.sig CHANGED
@@ -1,3 +1,6 @@
1
- !ZTy��ص��7{��Gnw��~���_e}D]����$�1{��
2
- _5od7�?kXg#yC{;�!P
3
- ��O��sh: �
1
+ �R<�X���g
2
+ pW9Z��x���٢��I�׸� ��lkQ&�suƤ�u���α��}NLܤ��"huDhF��|��%
3
+ �����o��55���
4
+ �$l��U��,�D;!hN��eR�O��N��:�A�I�I����8
5
+ �e+�z�%��Չ�֕.���
6
+ ��%��܇3�޾�k ���]x��9b;8�戩{g�f�[�������m
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.1
4
+ version: 0.34.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file