Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to restart workers gracefully #1206

Open
thomas-hiron opened this issue Nov 26, 2024 · 0 comments
Open

How to restart workers gracefully #1206

thomas-hiron opened this issue Nov 26, 2024 · 0 comments

Comments

@thomas-hiron
Copy link

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:

func restartWorkers(workerOpts []workerOpt) {

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant