Provide specific assurances for resque jobs.
If you're using Bundler, you can add resque-assurances to your Gemfile:
Or manually install the resque-assurances gem:
gem install resque-assurances
Generates an MD5 of the job's arguments and uses a redis set to record what jobs have been queued. Jobs that have been performed will be removed from the set so that they can be queued again.
class MyWorker extend Resque::Assurances::Uniqueness @queue = :my_work end Resque.enqueue(MyWorker, 42) Resque.enqueue(MyWorker, 42) # This will do nothing.
Find a mistake? Submit a pull request!