Skip to content

Commit c2cbcc1

Browse files
Tom Browdefunkt
authored andcommitted
fix erroneous pruning of living workers
1 parent 2ee219e commit c2cbcc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resque/worker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def pid
470470
# Returns an array of string pids of all the other workers on this
471471
# machine. Useful when pruning dead workers on startup.
472472
def worker_pids
473-
`ps -A -o pid,command | grep [r]esque | grep -i "resque-web"`.split("\n").map do |line|
473+
`ps -A -o pid,command | grep [r]esque | grep -v "resque-web"`.split("\n").map do |line|
474474
line.split(' ')[0]
475475
end
476476
end

0 commit comments

Comments
 (0)