async-container 0.31.0 → 0.31.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e15ecc1c913a50b101dae8f01ec2086eee565be48c684eaee110d80f5ffa5001
4
- data.tar.gz: a30a269c56373cb3ab073e1facd9c375f41f5169fdf6a1570e0748165af26e87
3
+ metadata.gz: 46675ed8724779375aeccabec88625bb5f404c7f3ace7348c89acd5809133d8f
4
+ data.tar.gz: 697d47779954d8856ed75be18c60cb4907fc119c3bcbdecdbb95dcf2d6154d12
5
5
  SHA512:
6
- metadata.gz: b75e11606c5a2c9878f41564cc1523dcad05b30589281736060a58d2ad0ffc04bb4523d87fcba8183d48427100886bff1e20256a9b9d94729b80744dacbb8784
7
- data.tar.gz: 9d07035b6912a654d38d9a0b3810d01451384c19f5c1f3ff967d41a47b99c06ca718e2f6a25e79a3cd4a6ff580d1484a97c9e4692b8b708a8eeb8aa09e2a9d98
6
+ metadata.gz: e3151ea8a4abeaef64fa4b884587b0d0dd4a85ad8e041d5c912762bde0816ab4415e4f8ed7725f86606923f13e6630810e81ae3d74bfdfe4b92b1575ab8b948c
7
+ data.tar.gz: 6e07e869a01ecf5039a07de3a9b4a0ae1fce59d0bf498a9faadc3e94d4c3b6dc3bfa049ea166d5efc766e0a3bf4328f7c05f36a685e0acedcf078baa20887315
checksums.yaml.gz.sig CHANGED
Binary file
@@ -262,13 +262,6 @@ module Async
262
262
  delete(key, child)
263
263
  end
264
264
 
265
- # Notify policy of exit
266
- begin
267
- @policy.child_exit(self, child, status: status, name: name, key: key)
268
- rescue => error
269
- Console.error(self, "Policy error in child_exit!", exception: error)
270
- end
271
-
272
265
  if status&.success?
273
266
  Console.debug(self, "Child exited successfully.", status: status, running: @running)
274
267
  else
@@ -276,6 +269,13 @@ module Async
276
269
  Console.error(self, "Child exited with error!", status: status, running: @running)
277
270
  end
278
271
 
272
+ # Notify policy of exit (after statistics are updated):
273
+ begin
274
+ @policy.child_exit(self, child, status: status, name: name, key: key)
275
+ rescue => error
276
+ Console.error(self, "Policy error in child_exit!", exception: error)
277
+ end
278
+
279
279
  if restart && @running
280
280
  @statistics.restart!
281
281
  else
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module Container
8
- VERSION = "0.31.0"
8
+ VERSION = "0.31.1"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
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.31.0
4
+ version: 0.31.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file