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

As a user, I can specify how long workers should wait during graceful shutdown #6242

Open
bmbouter opened this issue Jan 29, 2025 · 1 comment

Comments

@bmbouter
Copy link
Member

See this comment which discusses exposing the TASK_GRACE_INTERVAL as a setting. This is an RFE requesting that.

I don't know how long a heartbeat is so if the setting is expressed in heartbeats (which I think I'm ok with), then I need to know how long that is.

As a user, it would be nicer to me if it was expressable in seconds. For example we also have k8s hard timeout values and those are expressed in seconds, and we need to set these similarly and together, so having them all on a seconds timescale is nicer for me. It'll be ok though if not.

@mdellweg
Copy link
Member

Well heartbeat duration is afaik a setting.
But also this grace time is not a precise time interval. It is measured by counting the ticking by of heartbeats. So the actual resulting time depends on where in the rhythm of the heart an event occured.

If we want more precise timing of stuff we need to rewrite the workers using async python.

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

No branches or pull requests

2 participants