Hi, we are rapidly developing and because of that we deploy quite often every day. We use sidekiq pro for our background processing and we are seeing a lot of orphaned jobs in our logs. This would mean that sidekiq is being killed quite quickly and does not have time to finish up running jobs (more details here Batches, failed jobs and retries not showing · Issue #4900 · sidekiq/sidekiq · GitHub).
What are the settings for terminating running processes after deploy? Any way these could be tweaked to better suit Sidekiq? Specifically how long does render wait for process to finish before killing it?
I have found other related topics that were left without an (acceptable) answer:
To answer your other question, we issue a SIGTERM and wait 30 seconds before issuing a SIGKILL. Is that the behavior you’re seeing or does it look like Sidekiq is getting killed more quickly than 30 seconds?
Strictly speaking the feature request does not cover this behaviour.
I have not done extensive testing so I do not know that what you are describing matches reality. However I have been seeing a lot of orphaned jobs. I have adjusted the sidekiq timeout to be much lower (5s) and hopefully this will help.