Skip to content

feat: implement graceful shutdowns #613

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

Merged
merged 1 commit into from
Jul 1, 2025
Merged

feat: implement graceful shutdowns #613

merged 1 commit into from
Jul 1, 2025

Conversation

jnatten
Copy link
Contributor

@jnatten jnatten commented Jun 30, 2025

ligner på denne

This patch introduces graceful shutdowns in the form of a ready flag
that the health endpoints utilizes when determining whether the
readiness probe returns healthy or unhealthy.

When a shutdown signal is detected the ready flag is set to false and a
timeout for actual shutdown starts.

The shutdown process will wait until either all active requests have finished
processing OR the specified timeout is met. Whichever happens first.
@jnatten jnatten requested review from a team June 30, 2025 12:41
@jnatten jnatten merged commit 989e739 into master Jul 1, 2025
3 checks passed
@jnatten jnatten deleted the graceful-shutdowns branch July 1, 2025 07:38
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

Successfully merging this pull request may close these issues.

3 participants