Skip to content

Instantly share code, notes, and snippets.

@josue
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josue/9513071 to your computer and use it in GitHub Desktop.
Save josue/9513071 to your computer and use it in GitHub Desktop.
Dump all resque-web failed jobs from IP address
#!/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