We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ee219e commit c2cbcc1Copy full SHA for c2cbcc1
lib/resque/worker.rb
@@ -470,7 +470,7 @@ def pid
470
# Returns an array of string pids of all the other workers on this
471
# machine. Useful when pruning dead workers on startup.
472
def worker_pids
473
- `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|
474
line.split(' ')[0]
475
end
476
0 commit comments