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

FEAT: server graceful shutdown #50

Merged
merged 1 commit into from
Jun 14, 2024
Merged

FEAT: server graceful shutdown #50

merged 1 commit into from
Jun 14, 2024

Conversation

kynrai
Copy link
Collaborator

@kynrai kynrai commented Jun 14, 2024

  • Wait for active connections to finish before server shutdown
  • Test server start up

This covers production scenarios where the server is actively serving requests when a shutdown signal is received, the server will wait up to 60 seconds for any active connections to finish while at the same time not accepting any new requests.

This means in production, clients and thus users wont experience abrupt call failures when we cycle containers

- Wait for active connections to finish before server shutdown
- Test server startup
@kynrai kynrai requested a review from Lissy93 as a code owner June 14, 2024 14:24
Copy link

codecov bot commented Jun 14, 2024

Codecov Report

Attention: Patch coverage is 21.05263% with 15 lines in your changes missing coverage. Please review.

Flag Coverage Δ
unittests 57.59% <21.05%> (+5.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
server/server.go 84.21% <66.66%> (+84.21%) ⬆️
main.go 0.00% <0.00%> (ø)

... and 2 files with indirect coverage changes

Copy link
Member

@Lissy93 Lissy93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

@Lissy93 Lissy93 merged commit 579e631 into main Jun 14, 2024
2 of 3 checks passed
@Lissy93 Lissy93 deleted the feat/graceful_shutdown branch June 14, 2024 22:18
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.

2 participants