async-job-adapter-active_job 0.16.3 → 0.17.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: b0c569546d84716c698c454c8059a052ecf04c033f67ef25b464f46c73667390
4
- data.tar.gz: b2fc8649e06a089da7e691319fc9f7bdb430c5120c3854b9b8ae84a0b61d9c9c
3
+ metadata.gz: 66445f0bf906bfb8f5493ceef1b6b3e16f594c9ce38bce30330c6cd85e36ca08
4
+ data.tar.gz: 576eed85808278d9c52d54925dc3f74dc86662950dec2027782d8e391a60481d
5
5
  SHA512:
6
- metadata.gz: 8d828d19b11a6665c7e29df326c2bd9617862b1b8a3ef6e33eaeceb4329bd5ace2b5ab64349b306fd09f3f9a6bbecfb4c76f7a869bf6a1023a403c99ba3a9986
7
- data.tar.gz: 6d18ec31378c101ab866ff430086aa7a00c87e0624dbb831cb1102c5fa12d9bbb42f847a7efa741ce31220565dde7ec02407a9e533f0cba1c29ae90f9ec8b1e2
6
+ metadata.gz: 33fb18bc315b404c4ff1a4710509ba40875c1743f943bce000a6572367042830bf220a6bfff0d98bd111760f598537c5a508f77cfa0e6036a83a195024b5245a
7
+ data.tar.gz: 360e348c67060de1810e570b9afb720aa4d721a78ebbcbe4886f98836b286744314c83f0db02006e1c57b132bc82df65f3f64dbdfcab32704d1595cf182a6670
checksums.yaml.gz.sig CHANGED
Binary file
@@ -62,9 +62,12 @@ module Async
62
62
  end
63
63
 
64
64
  def status_string
65
- @queues.map do |name, queue|
66
- if queue.respond_to?(:status_string)
67
- "#{name} (#{queue.status_string})"
65
+ self.keys.map do |name|
66
+ queue = @queues[name]
67
+ server = queue&.server
68
+
69
+ if server&.respond_to?(:status_string)
70
+ "#{name} #{server.status_string}"
68
71
  else
69
72
  name
70
73
  end
@@ -29,17 +29,17 @@ module Async
29
29
 
30
30
  instance.ready!
31
31
 
32
- if health_check_timeout
33
- Async(transient: true) do
34
- while true
35
- instance.name = "#{self.name} (#{dispatcher.status_string})"
36
- sleep(health_check_timeout / 2)
37
- instance.ready!
32
+ Sync do |task|
33
+ if health_check_timeout
34
+ task.async(transient: true) do
35
+ while true
36
+ instance.name = "#{self.name} (#{dispatcher.status_string})"
37
+ sleep(health_check_timeout / 2)
38
+ instance.ready!
39
+ end
38
40
  end
39
41
  end
40
- end
41
-
42
- Sync do |task|
42
+
43
43
  barrier = Async::Barrier.new
44
44
 
45
45
  # Start all the named queues:
@@ -7,7 +7,7 @@ module Async
7
7
  module Job
8
8
  module Adapter
9
9
  module ActiveJob
10
- VERSION = "0.16.3"
10
+ VERSION = "0.17.0"
11
11
  end
12
12
  end
13
13
  end
data/readme.md CHANGED
@@ -14,6 +14,10 @@ Please see the [project documentation](https://socketry.github.io/async-job-adap
14
14
 
15
15
  Please see the [project releases](https://socketry.github.io/async-job-adapter-active_job/releases/index) for all releases.
16
16
 
17
+ ### v0.17.0
18
+
19
+ - Fix health check.
20
+
17
21
  ### v0.16.3
18
22
 
19
23
  - Actually use `container_options`. I have been working too much.
@@ -60,10 +64,6 @@ Please see the [project releases](https://socketry.github.io/async-job-adapter-a
60
64
 
61
65
  - Force string names for queue identifiers, fixes \#5.
62
66
 
63
- ### v0.12.0
64
-
65
- - Improved error handling - let ActiveJob handle retry logic.
66
-
67
67
  ## Contributing
68
68
 
69
69
  We welcome contributions to this project.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.17.0
4
+
5
+ - Fix health check.
6
+
3
7
  ## v0.16.3
4
8
 
5
9
  - Actually use `container_options`. I have been working too much.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-job-adapter-active_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.3
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file