Last active
August 29, 2015 13:57
-
-
Save josue/9513071 to your computer and use it in GitHub Desktop.
Dump all resque-web failed jobs from IP address
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 | |
# To extract from localhost '127.0.0.1:6379', you can quickly do: | |
# usage: curl -L http://git.io/dump-resque-failed-jobs-test | sh | |
[ "$1" != "" ] && IP=$1 || IP=127.0.0.1 | |
[ "$2" != "" ] && PORT=$2 || PORT=6379 | |
redis-cli -h $IP -p $PORT LRANGE resque:failed 0 -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment