seuros / capistrano-sidekiq

Sidekiq integration for Capistrano
Other
557 stars 307 forks source link

Increasing timeout option to after 'deploy:starting', 'sidekiq:stop' hook #293

Closed ishields closed 2 years ago

ishields commented 2 years ago

Hello, I am trying to find a way of doing this but can't find it anywhere in the documentation. I'm trying to increase the time that sidekiq will wait for current running jobs to finish. We have some jobs that take about 30-60 seconds to run, and though it's ok if they terminate early, I'd prefer them to not. It would be great to increase this timeout so that the jobs finish. Is this possible?

I'm using the default hooks

after 'deploy:starting', 'sidekiq:quiet' after 'deploy:updated', 'sidekiq:stop' after 'deploy:reverted', 'sidekiq:stop' after 'deploy:published', 'sidekiq:start'

legendetm commented 2 years ago

The timeout can be configured in Sidekiq configuration file using :timeout option