Enhancements and improvements for Delayed Job 2.x
MIT License
h1. DJ Remixes
A boat load of incredibly useful 'plugins' for Delayed::Job! DJ is a wonderful project and is incredibly useful, however it can be even more useful with just a few extras added in.
h2. The Extras
These are a few of the extras for DJ that are included here.
h2. Installation
In your Gemfile add the following:
Then install the gems:
Create a migration to add the required dj_remixes fields to the delayed_job table:
h2. Using
h3. Basic Worker
h3. Unique Worker
Tell DJ to only allow one of this worker at a given time.
If the worker has an id attribute that then will be used in conjunction with the class name of the worker to form the unique key.
h3. Priority
Tell DJ to run this worker with a higher priority than others.
h3. Re-Enqueueing
Tell DJ to re-enqueue this worker after it has successfully completely. NOTE: This will actually create a new DJ object in the database, not reuse the same one.
h3. Attributes
The DJ::Worker class can accept attributes, similar to the way an ActiveRecord model can.
h2. Contributors