capistrano_multiconfig_parallel 0.21.3 → 0.21.4
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: 70473783fd7b721276c59abe41f997a9e3bcaf41
|
4
|
+
data.tar.gz: 094ffe37d3a9b925a3c31162cec63493478a4979
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 314c079934f520e3212fd12be27fda968b30ecef8bce37fc20770832a5e7e297803590a3b93a8855e262ac3e0349437543f7f34c62fe07d88b18564c57daa623
|
7
|
+
data.tar.gz: ca80ccba37e32e78b6e10b1f50b215dffee9cc8cf76a794bca96797420294ff2ab6a62aab1d8c249b12aa1730f0da104825072fcd2aad04c0d4462ca1cb76940
|
@@ -50,7 +50,11 @@ module CapistranoMulticonfigParallel
|
|
50
50
|
# table.style = { width: 20 }
|
51
51
|
puts "\n#{table}\n"
|
52
52
|
sleep(0.1)
|
53
|
-
@job_manager.
|
53
|
+
if @job_manager.alive? && @manager.alive? && @manager.all_workers_finished?
|
54
|
+
@job_manager.condition.signal('completed')
|
55
|
+
else
|
56
|
+
terminate
|
57
|
+
end
|
54
58
|
end
|
55
59
|
|
56
60
|
def worker_state(job_id, job)
|
@@ -65,12 +69,12 @@ module CapistranoMulticonfigParallel
|
|
65
69
|
|
66
70
|
def add_job_to_table(table, job_id, job, index)
|
67
71
|
row = [{ value: (index + 1).to_s },
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
72
|
+
{ value: job_id.to_s },
|
73
|
+
{ value: job.job_stage },
|
74
|
+
{ value: job.capistrano_action },
|
75
|
+
{ value: job.setup_command_line_standard(filtered_keys: [CapistranoMulticonfigParallel::ENV_KEY_JOB_ID]).join("\n") },
|
76
|
+
{ value: worker_state(job_id, job) }
|
77
|
+
]
|
74
78
|
|
75
79
|
# if worker.alive?
|
76
80
|
# row << { value: job.rake_tasks.size }
|