Skip to content

Instantly share code, notes, and snippets.

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