fixed delayed_job kill task
This commit is contained in:
@@ -96,7 +96,7 @@ namespace :delayed_job do
|
||||
desc "Restart delayed_job process"
|
||||
task :restart, :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"
|
||||
run "cd #{current_path}; RAILS_ENV=#{rails_env} script/delayed_job start"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user