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

Implement graceful shutdown #141

Open
3 tasks
ygrishajev opened this issue Apr 1, 2024 · 0 comments
Open
3 tasks

Implement graceful shutdown #141

ygrishajev opened this issue Apr 1, 2024 · 0 comments
Labels
enhancement New feature or request P3 priority 3 feature/ enhancement

Comments

@ygrishajev
Copy link
Collaborator

ygrishajev commented Apr 1, 2024

This is essential for several purposes:

  1. functional testing when server and all the deps termination (dbs, caching etc)
  2. proper scaling scenarios

Basically before application is actually closed several things need to happen on SIGTERM:

  1. server should stop accepting new connections while finishing the ones in progress
  2. ones that's done db connections needs to be closed
  3. this should be triggered by a method that can be used in tests or in a termination event handler

Tasks:

  • implement graceful shutdown
  • attach it to a process termination event
  • use it for functional tests teardown
@ygrishajev ygrishajev added the enhancement New feature or request label Apr 17, 2024
@baktun14 baktun14 added the P3 priority 3 feature/ enhancement label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P3 priority 3 feature/ enhancement
Projects
Status: Backlog (not prioritized)
Development

No branches or pull requests

2 participants