Commit aff60357 by liangyuzhe

god sidekiq

parent 78046e12
......@@ -72,10 +72,7 @@ namespace :deploy do
desc 'Restart application'
task :restart do
on roles(:app), in: :sequence, wait: 5 do
# invoke 'sidekiq:god_restart'
puts "restart sidekiq."
invoke 'sidekiq:restart'
sleep 10
invoke 'sidekiq:god_restart'
end
end
before :starting, :check_revision
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment