martedì 26 aprile 2011

How to start/stop/restart delayed_jobs from the 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:
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:
script/delayed_job start
To stop:
script/delayed_job stop
To restart:
script/delayed_job restart

Hope this helps.

Nessun commento:

Posta un commento