Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Graceful shutdown #2037

Merged
merged 2 commits into from
Aug 10, 2022
Merged

Graceful shutdown #2037

merged 2 commits into from
Aug 10, 2022

Conversation

shanson7
Copy link
Collaborator

Currently the API server shuts down without giving any in-flight requests a chance to finish. This change is to call Shutdown on the server and block for a short window to allow these requests to finish successfully. This way, in normal shutdown procedure we should see minimal failures for requests.

I also think it simplifies the flow, removing a background goroutine/channel

@CLAassistant
Copy link

CLAassistant commented Jul 29, 2022

CLA assistant check
All committers have signed the CLA.

@robert-milan robert-milan merged commit 9de7413 into grafana:master Aug 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants