Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 

README.md

resque-assurances

Provide specific assurances for resque jobs.

Getting Started

If you're using Bundler, you can add resque-assurances to your Gemfile:

gem 'resque-assurances'

Or manually install the resque-assurances gem:

gem install resque-assurances

Usage

Uniqueness

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.

Contributing

Find a mistake? Submit a pull request!

About

Provide assurances for resque jobs.

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.