Skip to content

Instantly share code, notes, and snippets.

@rpanachi
Last active December 16, 2015 08:29
Show Gist options
  • Save rpanachi/5406082 to your computer and use it in GitHub Desktop.
Save rpanachi/5406082 to your computer and use it in GitHub Desktop.
#!/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}'
@rogerleite
Copy link

Lista quantidade de jobs de cada fila ... foda!

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