Skip to content

Instantly share code, notes, and snippets.

@pgwillia
Last active August 29, 2015 14:10
Show Gist options
  • Save pgwillia/47c234452ed544ea41b5 to your computer and use it in GitHub Desktop.
Save pgwillia/47c234452ed544ea41b5 to your computer and use it in GitHub Desktop.
Resque cheatsheet
## Status
Resque.info
Resque.queues
Resque.redis
Resque.size(queue_name)
# check out what's coming next in the queue
# Resque.peek(archive_queue)
# Resque.peek(archive_queue, 1, 5)
# Resque.peek(archive_queue, 59, 30)
Resque.peek(queue_name, start=1, count=1)
## Workers
Resque.workers
Resque.working
Resque.remove_worker(worker_id) # find worker_id from one of the above methods
## Failures
Resque::Failure.all
Resque::Failure.all(0,3) # show 3 starting at the first index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment