Skip to content

Instantly share code, notes, and snippets.

@vanhalt
Created April 11, 2014 20:10
Show Gist options
  • Save vanhalt/10497619 to your computer and use it in GitHub Desktop.
Save vanhalt/10497619 to your computer and use it in GitHub Desktop.
Dealing with Resque workers PIDs
# work to get working workers of work xD
# testing with resque-1.24
ps -Ao pid,stat,command | grep [r]esque |grep 'Forked'
# see the parent
ps -Ao pid,stat,command | grep [r]esque |grep 'Forked' |cut -d ' ' -f 7 |xargs -I padre ps padre
@vanhalt
Copy link
Author

vanhalt commented Apr 11, 2014

All workers for this resque version:

ps -Ao pid,stat,command | grep [r]esque-1.24.1:*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment