Detect the app is exiting and avoid reconnecting to computes.

This commit is contained in:
grossmj committed 2021-04-17 18:33:20 +09:30
1 parent 6b8ce8219c
commit bad3ef7003
4 files changed
+19 -13

No files matched your search

+1 -1
View File
@@ -82,7 +82,7 @@ def create_startup_handler(app: FastAPI) -> Callable:
def create_shutdown_handler(app: FastAPI) -> Callable:
"""
Tasks to be performed when the server is shutdown.
Tasks to be performed when the server is exiting.
"""
async def shutdown_handler() -> None: