Skip to content

Background Jobs in Rails — Delayed_job

by dkberktas on July 22nd, 2010

Rails has lots of options for background jobs, the list below is a collection of link that help my choose Delayed Jobs which is a simple and capable enough one.

  • Blog post which is a good summary of alternatives — (kind of a survey)
  • A related question on StackOverflow
  • Blog post about Delayed Job link
  • Heroku suggests Delayed Job, so this is the one I am looking for ;)
  • and finally this is the Heroku guide for using Delayed Job
  • Railcast about Delyaed_job
  • Tip&Tricks

If you are interested, we are using Delayed Job for creating our heatmaps for remotespots usability testing site. Heatmap project will probably work as a separate project so that others can also use it for creating heatmaps on top of their images. Stay tuned for the heatmap side project!

Steps for Delayed_job

  • Install the plugin from github (from collectiveideas) with
  • script/plugin install git://github.com/collectiveidea/delayed_job.git
  • Create the model
  • script/generate delayed_job
    rake db:migrate
  • You can set priority and a certain time for the job to be put on queue.
  • send_later(:your_method_name, -3, 3.days.from_now)
No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS