Code cleanup. Refs #543
This commit is contained in:
parent
d3e89393a8
commit
e78d9c54a1
|
@ -22,8 +22,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
||||||
def stop_workers
|
def stop_workers
|
||||||
# ps = 'ps aux | grep resque | grep -v grep'
|
# ps = 'ps aux | grep resque | grep -v grep'
|
||||||
# run "#{ps} && kill -QUIT `#{ps} | awk '{ print $2 }'` || echo 'Workers already stopped!'"
|
# run "#{ps} && kill -QUIT `#{ps} | awk '{ print $2 }'` || echo 'Workers already stopped!'"
|
||||||
# run "kill -QUIT `ps aux | grep resque | grep -v grep | awk '{ print $2 }'`"
|
|
||||||
# run "kill -QUIT `ps aux | grep resque | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1 &"
|
|
||||||
run "cd #{fetch :current_path} && #{rails_env} bundle exec rake resque:stop_workers"
|
run "cd #{fetch :current_path} && #{rails_env} bundle exec rake resque:stop_workers"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue