Add tear down
This commit is contained in:
@@ -29,6 +29,7 @@ async def _lifespan(_app: FastAPI): # noqa: ANN202
|
||||
await location_recorder.create_db_engine()
|
||||
yield
|
||||
await mqtt.stop()
|
||||
await location_recorder.dispose_db_engine()
|
||||
|
||||
|
||||
app = FastAPI(lifespan=_lifespan)
|
||||
|
||||
Reference in New Issue
Block a user