capistrano_multiconfig_parallel 0.8.1 → 0.8.2

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: ebf7abf008cd1254ba273dc97467920cbb2be773
4
- data.tar.gz: 91ed0dd95fafd3fc453ade3d653c575ddab0a13e
3
+ metadata.gz: d6134462591dad203c8813ee2541c18ac6130a28
4
+ data.tar.gz: 1d05c54dac21aaab77ac4b1aaf23aa6bf022ae5d
5
5
  SHA512:
6
- metadata.gz: d3601c465aa36710d7c9b31f018bf314f18e87b2db73cf896ad8a19524f7123930fd79413dc66bc0316af35fe63902d3c08dcae30c868aae6bdde66dfbd7797a
7
- data.tar.gz: 0c9ccaac1b56a1c344629993bbab0fa417e18c16178fb5c2c75bf7037c964138a6771c744b0a1b15f3c86e12d34a54e55fb351f66e7faa9f8ebf89c9bdb54e54
6
+ metadata.gz: f2219e649e4124fe1e50590114d12206ebb5de565bfa7ef20a48bc142ae0ab27402269d19efac9af8b77136688f3cbdb3b79524fc49e3f518d9e7781847d8bb6
7
+ data.tar.gz: 76887f9b98ddd6ad97185111d8f83946ff8d72a0ba656bd1fb8c0cfe09d9d710892a5fe260737008efc22df37a56b54374af8327ff5cd2a032ac79daedea9d6c
@@ -275,7 +275,7 @@ module CapistranoMulticonfigParallel
275
275
  def worker_died(worker, reason)
276
276
  debug("worker with mailbox #{worker.mailbox.inspect} died for reason: #{reason}") if self.class.debug_enabled?
277
277
  job = @worker_to_job[worker.mailbox.address]
278
- return if @jobs[job['job_id']]['worker_action'] == "finished"
278
+ debug job.inspect if self.class.debug_enabled?
279
279
  @worker_to_job.delete(worker.mailbox.address)
280
280
  debug "restarting #{job} on new worker" if self.class.debug_enabled?
281
281
  return if job.blank? || job_failed?(job)
@@ -229,7 +229,7 @@ module CapistranoMulticonfigParallel
229
229
  return unless @execute_deploy
230
230
  if exit_status.exitstatus != 0
231
231
  debug("worker #{job_id} tries to terminate") if debug_enabled?
232
- terminate
232
+ raise(CapistranoMulticonfigParallel::CelluloidWorker::TaskFailed, "task #{@action} failed ") # force worker to rollback
233
233
  else
234
234
  update_machine_state('FINISHED')
235
235
  debug("worker #{job_id} notifies manager has finished") if debug_enabled?
@@ -41,7 +41,7 @@ module CapistranoMulticonfigParallel
41
41
 
42
42
  def process_finalizer
43
43
  @timer.cancel
44
- EM.stop
44
+ EM.stop if EM.reactor_running?
45
45
  end
46
46
 
47
47
  def check_exit_status
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 8
11
- TINY = 1
11
+ TINY = 2
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.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada