Last active
August 29, 2015 14:10
-
-
Save pgwillia/47c234452ed544ea41b5 to your computer and use it in GitHub Desktop.
Resque cheatsheet
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
## 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