Created
July 17, 2012 21:57
-
-
Save joshuacronemeyer/3132423 to your computer and use it in GitHub Desktop.
Configure delayed Job to use workless scaler for production with sinatra.
This file contains 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
configure :production do | |
Delayed::Backend::ActiveRecord::Job.send(:include, Delayed::Workless::Scaler) | |
Delayed::Job.scaler = :heroku_cedar | |
end |
This file contains 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
worker: bundle exec rake jobs:work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment