I had an application that had a several minutes long on_worker_shutdown routine. The period between worker terminations was not user configurable and defaulted to 60 seconds. This left me in the situation where all my workers would then be sent TERM before they completed and spawned another. My application was then not responding until at least one worker completed.
This PR adds a user configurable delay between worker kills. I am not sure how useful this is for others, but I figured I'd offer it up for inclusion.
I had an application that had a several minutes long
on_worker_shutdown
routine. The period between worker terminations was not user configurable and defaulted to 60 seconds. This left me in the situation where all my workers would then be sentTERM
before they completed and spawned another. My application was then not responding until at least one worker completed.This PR adds a user configurable delay between worker kills. I am not sure how useful this is for others, but I figured I'd offer it up for inclusion.