Code cleanup. Refs #543

This commit is contained in:
Pavel Chipiga 2012-06-29 16:52:32 +03:00
parent d3e89393a8
commit e78d9c54a1
1 changed files with 0 additions and 2 deletions

View File

@ -22,8 +22,6 @@ Capistrano::Configuration.instance(:must_exist).load do
def stop_workers
# ps = 'ps aux | grep resque | grep -v grep'
# 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"
end