Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
README
Rakefile
resque_check.gemspec

README

small utility gem for checking resque for different things

initialization:

resque_check = ResqueCheck::Worker.new(redis options)

or

ResqueCheck::Worker::init_via_resque_yml("#{Rails.root}/config/resque.yml")


getting the number of entries in a queue:

resque_check.num_workers('some_specific_queue')


turning on debug mode (e.g. log messages):
resque_check.debug = true

checking for a specific value at some index in the queue:

r1 = resque_check.check_for("some_specific_queue",45364,2)

checks each entry in the queue for the value 45364 at index 2, returns true if one entry in the queue
has this value
Something went wrong with that request. Please try again.