delayed_job DataMapper backend
Installation
Add the gems to your Gemfile:
gem 'delayed_job', '2.1.0.pre2'
gem 'delayed_job_data_mapper', '1.0.0.rc'
If you're using dm-rails gem, add this to your environment.rb:
XXX::Application::configure do
config.after_initialize do
Delayed::Worker.backend.auto_upgrade!
end
end
Otherwise, add an initializer:
Delayed::Worker.backend.auto_upgrade!
That's it. Use delayed_job as normal.