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 +4 -4
- data/lib/resqued/version.rb +1 -1
- data/lib/resqued/worker.rb +11 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5caac7ba20bcafd74ebd32d58aa0b88d9ca8c0a
|
4
|
+
data.tar.gz: 0b0ee3b38fd6fe32ee2e5b73453e75a8479cf953
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cad488ec507dc2f56fe099baa6dbe274c26dc27a546d05327f5b6e8414490b2d5edcb0280be86e3f61372dc05fd33fb38a0d92315c9ff7228c9bfd1b8993369
|
7
|
+
data.tar.gz: b47aecd6cbb52c6894becdc33a818389d483c0862f54a361d22c39f95d1574031fbbbce7ee7255a6ac6973d116bf900697c6ceba8e0cccc70964e1a6910f12d1
|
data/lib/resqued/version.rb
CHANGED
data/lib/resqued/worker.rb
CHANGED
@@ -42,9 +42,17 @@ module Resqued
|
|
42
42
|
|
43
43
|
# Public: The old worker process finished!
|
44
44
|
def finished!(process_status)
|
45
|
-
|
46
|
-
|
47
|
-
|
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.
|
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
|
+
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: []
|