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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/job/adapter/active_job/dispatcher.rb +6 -3
- data/lib/async/job/adapter/active_job/service.rb +9 -9
- data/lib/async/job/adapter/active_job/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: 66445f0bf906bfb8f5493ceef1b6b3e16f594c9ce38bce30330c6cd85e36ca08
|
4
|
+
data.tar.gz: 576eed85808278d9c52d54925dc3f74dc86662950dec2027782d8e391a60481d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
66
|
-
|
67
|
-
|
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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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
|
-
|
41
|
-
|
42
|
-
Sync do |task|
|
42
|
+
|
43
43
|
barrier = Async::Barrier.new
|
44
44
|
|
45
45
|
# Start all the named queues:
|
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
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|