Davide Targa website

Programming, web development and open source

Manage Delayed Jobs From Command Line

Delayed Jobs is a background processing tool written in ruby.

When you use it inside a Ruby on Rails application, usually you start it with:

1
$ rake jobs:work

If you need to start delayed jobs from a Capistrano task or from a monitoring framework like God, you should use the following commands.

  • To start:
1
script/delayed_job start
  • To stop:
1
script/delayed_job stop
  • To restart:
1
script/delayed_job restart

Hope this helps.

Comments