How to restart workers gracefully
Hello,
I can't find the information if Franken can restart workers but wait for busy workers to send the response first before restarting. Here was described the behaviour I'd like to use: #1013
if a worker gets stuck in a request, the watcher will wait for the worker to finish before performing another reload (don't know if there's a better way to do this)
Maybe the restartWorkers method is what I'm looking for, but I can't find any usage of it: https://github.com/dunglas/frankenphp/blob/a396e64ad65198b040b55771ecc7def47f9632ea/worker.go#L222
I have long-running requests (file uploads), that can last hours, and I'd like a zero-downtime deployment. To do that, I update the code and I would like to restart the workers once they are done with their current request.
Is it something I can do?
Thanks by advance for your help!