fixed delayed_job kill task

This commit is contained in:
albert
2011-09-18 15:53:35 -04:00
parent 19e052724c
commit 36979de3a3

View File

@@ -90,7 +90,7 @@ namespace :delayed_job do
desc "Stop delayed_job process"
task :stop, :roles => :app do
run "cd #{current_path}; RAILS_ENV=#{rails_env} script/delayed_job stop"
run "pkill -SIGKILL -f delayed_job"
run "pgrep -f delayed_job | xargs kill -SIGKILL"
end
desc "Restart delayed_job process"