resqued 0.7.7 → 0.7.8

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: 303c225999215b8daf81924a374a7a1f2fe2b47a
4
- data.tar.gz: 8d841be51e42d4c1a21ce6d35082d7273e3274c7
3
+ metadata.gz: f5caac7ba20bcafd74ebd32d58aa0b88d9ca8c0a
4
+ data.tar.gz: 0b0ee3b38fd6fe32ee2e5b73453e75a8479cf953
5
5
  SHA512:
6
- metadata.gz: cccb7db2c2b54dfd86512fb9089062c5a39bfd9fce0d8c742af3ddbed7d520cde62c6b359eba03fd0a233d8cbbe49ba911fc6a4ac586421f5a183b8fdb5ccaea
7
- data.tar.gz: 6a0666ac544803c3e2b13047525c01de41967501b156f67a0c60fdabd823d37e8fb1ef53c6551c3fb1db9a5fea1fbfe1241a84617c67fc4cfd48ba3836d0eb05
6
+ metadata.gz: 8cad488ec507dc2f56fe099baa6dbe274c26dc27a546d05327f5b6e8414490b2d5edcb0280be86e3f61372dc05fd33fb38a0d92315c9ff7228c9bfd1b8993369
7
+ data.tar.gz: b47aecd6cbb52c6894becdc33a818389d483c0862f54a361d22c39f95d1574031fbbbce7ee7255a6ac6973d116bf900697c6ceba8e0cccc70964e1a6910f12d1
@@ -1,3 +1,3 @@
1
1
  module Resqued
2
- VERSION = '0.7.7'
2
+ VERSION = '0.7.8'
3
3
  end
@@ -42,9 +42,17 @@ module Resqued
42
42
 
43
43
  # Public: The old worker process finished!
44
44
  def finished!(process_status)
45
- log :debug, "I (#{@pid}/#{@pids.inspect}/self_started=#{@self_started}/killed=#{@killed}) died like this: #{process_status}"
46
- @pid = nil
47
- @backoff.died unless @killed
45
+ if process_status.nil? && ! @self_started
46
+ log :debug, "(#{@pid}/#{@pids.inspect}/self_started=#{@self_started}/killed=#{@killed}) I am no longer blocked."
47
+ @pid = nil
48
+ @backoff.died unless @killed
49
+ elsif ! process_status.nil? && @self_started
50
+ log :debug, "(#{@pid}/#{@pids.inspect}/self_started=#{@self_started}/killed=#{@killed}) I exited: #{process_status}"
51
+ @pid = nil
52
+ @backoff.died unless @killed
53
+ else
54
+ log :debug, "(#{@pid}/#{@pids.inspect}/self_started=#{@self_started}/killed=#{@killed}) Reports of my death are highly exaggerated (#{process_status.inspect})"
55
+ end
48
56
  end
49
57
 
50
58
  # Public: The amount of time we need to wait before starting a new worker.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resqued
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Burke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2013-11-25 00:00:00.000000000 Z
11
+ date: 2013-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kgio
@@ -127,7 +127,8 @@ files:
127
127
  - exe/resqued
128
128
  - exe/resqued-listener
129
129
  homepage: https://github.com/spraints/resqued
130
- licenses: []
130
+ licenses:
131
+ - MIT
131
132
  metadata: {}
132
133
  post_install_message:
133
134
  rdoc_options: []