Last Updated: February 25, 2016
·
1.817K
· rpanachi

Get the total number of jobs on all Resque queues

for q in $(echo "SMEMBERS \"resque:queues\"" | redis-cli | awk '{print $1}'); do echo $(echo "LLEN \"resque:queue:$q\"" | redis-cli); done | awk '{s+=$1} END {print s}'