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: on_shutdown for closing gracefully #591

Closed
mmiller-max opened this issue Oct 1, 2020 · 0 comments · Fixed by #599
Closed

Feature request: on_shutdown for closing gracefully #591

mmiller-max opened this issue Oct 1, 2020 · 0 comments · Fixed by #599

Comments

@mmiller-max
Copy link
Contributor

Add similar functionality to aiohttp's on_shutdown function.

This would enable users to specify custom shutdown functions (for example close database connections) that would trigger when an HTTP server stops. I'm not sure on the how its routed through, but it would be great if this could be triggered when, for example, CMD+Cing a Docker container which is running a Julia App hosting a HTTP server.

I'm happy to work on this and will give it a look later, but if anyone has any pointers that would be great.

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 a pull request may close this issue.

1 participant