Search code examples
rubyruby-on-rails-3ruby-on-rails-3.1delayed-job

Delayed_job - Multiple parallel queues?


I am using delayed_job and moved to a new beefier server. So now I would like to run parallel jobs, as now I have the POWER!, but am confused on whether delayed_job can run multiple parallel queues?

This question suggested that there are named queues, but do these all run off the one table and are thus sequential?

At the bottom @Jesse Wolgamott suggests that you can create a table for each queue that will then run in parrallel.

Has anyone done this and can they point me to how it is done?


Solution

  • With bundler in production:

    RAILS_ENV=production bundle exec script/delayed_job -n 4 start

    or without bundler

    ruby script/delayed_job -n 4 start