capistrano_multiconfig_parallel 0.21.0 → 0.21.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60af09c8a72d2b13a5a6dd7ed0b92c2b9a98d3ea
|
4
|
+
data.tar.gz: a66690a55513f91e77cacd4624e88055c8ecf0b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08932e497cbc2eee256c64c2f3722b9061183ff2f09ffee6c4e5f942ca3ac70335bf508b8ed19d1060fb372707accb5e2d66ab84e99ad0baff936fec437ec0b0
|
7
|
+
data.tar.gz: 6260627ed82218041207c985530f7af7cba87c9ad817ec6a905048b171d9b1de5d59624d0f17680cd6c4c6ddc188288caedeeb9590e060dcf1492cf49695ca1a
|
@@ -55,10 +55,10 @@ module CapistranoMulticonfigParallel
|
|
55
55
|
@job_manager.condition.signal('completed') if @manager.all_workers_finished?
|
56
56
|
end
|
57
57
|
|
58
|
-
def worker_state(job_id)
|
58
|
+
def worker_state(job_id, job)
|
59
59
|
return unless @manager.alive?
|
60
60
|
worker = @manager.get_worker_for_job(job_id)
|
61
|
-
worker.alive? ? worker.worker_state :
|
61
|
+
worker.alive? ? worker.worker_state : job.status.upcase.red
|
62
62
|
end
|
63
63
|
|
64
64
|
def filtered_env_keys
|
@@ -71,7 +71,7 @@ module CapistranoMulticonfigParallel
|
|
71
71
|
{ value: job.job_stage },
|
72
72
|
{ value: job.capistrano_action },
|
73
73
|
{ value: job.setup_command_line_standard(filtered_keys: [CapistranoMulticonfigParallel::ENV_KEY_JOB_ID]).join("\n") },
|
74
|
-
{ value: worker_state(job_id) }
|
74
|
+
{ value: worker_state(job_id, job) }
|
75
75
|
]
|
76
76
|
|
77
77
|
# if worker.alive?
|