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: 0678e5d70fde4903fa0371e345387bab14873225
4
- data.tar.gz: 84837b0f81864137caaf1d8bc3494fbca894cde9
3
+ metadata.gz: 70473783fd7b721276c59abe41f997a9e3bcaf41
4
+ data.tar.gz: 094ffe37d3a9b925a3c31162cec63493478a4979
5
5
  SHA512:
6
- metadata.gz: 412c4da923e6586ae9aa21110b018e4f126eb113d0a882892167e5f93a4e5aa5d8dd54d2f1b7e4fdb3caefcf08ae1510dfeb15d3aa32cbf570181cd41370214b
7
- data.tar.gz: d02454de07fea27d614f6877e71d1b1489251500e364517f9a7eccc25c6251d95df91f8f246eb9f3b47f7d065ed22bbdd3e5d644e4d073a0d14a95d991c4940b
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.condition.signal('completed') if @manager.all_workers_finished?
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
- { value: job_id.to_s },
69
- { value: job.job_stage },
70
- { value: job.capistrano_action },
71
- { value: job.setup_command_line_standard(filtered_keys: [CapistranoMulticonfigParallel::ENV_KEY_JOB_ID]).join("\n") },
72
- { value: worker_state(job_id, job) }
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 }
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 21
11
- TINY = 3
11
+ TINY = 4
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_multiconfig_parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.3
4
+ version: 0.21.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada