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

[Feature Request] Add support for shutdown hook #31

Open
derteufelqwe opened this issue Aug 3, 2023 · 0 comments
Open

[Feature Request] Add support for shutdown hook #31

derteufelqwe opened this issue Aug 3, 2023 · 0 comments

Comments

@derteufelqwe
Copy link

It would be great to have some kind of shutdown hook, which allows me to run cleanup code, before the server shuts down.

The workflow would be the following:

  1. In the grpc_hook method start a background thread
  2. The server runs
  3. On interrupt, call cleanup code to gracefully shutdown the thread from 1.
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

No branches or pull requests

1 participant