Repository is archived
No commit activity in last 3 years
No release in over 3 years
Collection of resque plugins that individually provide specific assurances about how resque workers will behave.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.0

Runtime

< 2, >= 1.0
 Project Readme

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!