Last active
December 16, 2015 08:29
-
-
Save rpanachi/5406082 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for q in $(echo 'SMEMBERS "resque:queues"' | redis-cli | awk '{print $1}') | |
do | |
echo $q $(echo "LLEN \"resque:queue:$q\"" | redis-cli) | |
done | |
# in a single line; | |
# 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}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lista quantidade de jobs de cada fila ... foda!