Provide assurances for resque jobs.
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.ruby-version
Gemfile
LICENSE
README.md
resque-assurances.gemspec

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!