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 7ca0bf3 commit 12583b6Copy full SHA for 12583b6
lib/resque/worker.rb
@@ -456,7 +456,7 @@ def hostname
456
# Returns an array of string pids of all the other workers on this
457
# machine. Useful when pruning dead workers on startup.
458
def worker_pids
459
- `ps -A -o pid,command | grep [r]esque`.split("\n").map do |line|
+ `ps -A -o pid,command | grep [r]esque | grep -i "resque-web"`.split("\n").map do |line|
460
line.split(' ')[0]
461
end
462
0 commit comments