Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix erroneous pruning of living workers
  • Loading branch information
Tom Brow authored and defunkt committed Feb 7, 2011
1 parent 2ee219e commit c2cbcc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/worker.rb
Expand Up @@ -470,7 +470,7 @@ def pid
# Returns an array of string pids of all the other workers on this
# machine. Useful when pruning dead workers on startup.
def worker_pids
`ps -A -o pid,command | grep [r]esque | grep -i "resque-web"`.split("\n").map do |line|
`ps -A -o pid,command | grep [r]esque | grep -v "resque-web"`.split("\n").map do |line|
line.split(' ')[0]
end
end
Expand Down

0 comments on commit c2cbcc1

Please sign in to comment.