resque 1.9.1 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of resque might be problematic. Click here for more details.
- data/HISTORY.md +5 -0
- data/lib/resque/version.rb +1 -1
- data/lib/resque/worker.rb +2 -2
- metadata +3 -3
data/HISTORY.md
CHANGED
data/lib/resque/version.rb
CHANGED
data/lib/resque/worker.rb
CHANGED
@@ -24,7 +24,7 @@ module Resque
|
|
24
24
|
|
25
25
|
# Returns an array of all worker objects.
|
26
26
|
def self.all
|
27
|
-
redis.smembers(:workers).map { |id| find(id) }
|
27
|
+
Array(redis.smembers(:workers)).map { |id| find(id) }
|
28
28
|
end
|
29
29
|
|
30
30
|
# Returns an array of all worker objects currently processing
|
@@ -447,7 +447,7 @@ module Resque
|
|
447
447
|
# Returns an array of string pids of all the other workers on this
|
448
448
|
# machine. Useful when pruning dead workers on startup.
|
449
449
|
def worker_pids
|
450
|
-
`ps -A -o pid,
|
450
|
+
`ps -A -o pid,comm | grep [r]esque`.split("\n").map do |line|
|
451
451
|
line.split(' ')[0]
|
452
452
|
end
|
453
453
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
version: 1.9.
|
8
|
+
- 2
|
9
|
+
version: 1.9.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Chris Wanstrath
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-06-
|
17
|
+
date: 2010-06-13 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|