add life span manager to guarantee graceful db shutdown

parent ec252519
...@@ -98,8 +98,6 @@ def create_app() -> FastAPI: ...@@ -98,8 +98,6 @@ def create_app() -> FastAPI:
expose_headers=["X-Response-Text"], expose_headers=["X-Response-Text"],
) )
# NOTE: The container is now created and managed by the 'lifespan' function.
# No need to create it here.
# Serve static files if the directory exists # Serve static files if the directory exists
static_path = Path("static") static_path = Path("static")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment