File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed
lib/async/job/adapter/active_job Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,12 @@ def keys
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
Original file line number Diff line number Diff line change @@ -29,17 +29,17 @@ def setup(container)
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
+ 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:
You can’t perform that action at this time.
0 commit comments