Created
March 13, 2011 15:00
-
-
Save 3dd13/868151 to your computer and use it in GitHub Desktop.
use workless with Delayed Job Mongoid https://github.com/collectiveidea/delayed_job_mongoid
https://github.com/lostboy/workless To use:
after setting up delayed_job_mongoid and workless,
put this file under initialzers directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Delayed::Worker.max_attempts = 3 | |
Delayed::Backend::Mongoid::Job.send(:include, Delayed::Workless::Scaler) if defined?(Delayed::Backend::Mongoid::Job) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Workless still doesn't work. :(