capistrano-sidekiq icon indicating copy to clipboard operation
capistrano-sidekiq copied to clipboard

Sidekiq should restart after deploy:failed

Open tomdev opened this issue 7 years ago • 3 comments

Sidekiq should get restarted after a failed deploy.

Currently, Sidekiq will still be monitored but running in quiet mode a.k.a. not accepting new jobs. This state should get corrected after a failed deploy.

A failed Capistrano deploy will not trigger deploy:updated to stop Sidekiq or deploy:published to start it again.

tomdev avatar May 30 '17 09:05 tomdev

@tomdev It's been a few months since you posted. How did you and your team resolve this issue? Any ideas?

taariq avatar Sep 16 '17 20:09 taariq

To make sure Sidekiq gets restarted we adding the following to our config/deploy.rb:

after 'deploy:failed', 'sidekiq:restart'

On failed deploys this will stop Sidekiq that's running in "quiet" mode and start it normally again.

tomdev avatar Sep 18 '17 08:09 tomdev

Thanks @tomdev. We just tested it and it looks like it rocks as a way to solve this problem. @seuros. Shouldn't this be set on by default on the capistrano script?

taariq avatar Sep 18 '17 18:09 taariq