🚧 Add dummy commit to check the reviewdog filter mode
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
This commit is contained in:
@@ -18,13 +18,14 @@ from api.routers import line, stop
|
||||
|
||||
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
async def lifespan(app: FastAPI) -> None:
|
||||
FastAPICache.init(redis_backend, prefix="api", enable=settings.cache.enable)
|
||||
|
||||
await db.connect(settings.db, settings.clear_static_data)
|
||||
if settings.clear_static_data:
|
||||
await idfm_interface.startup()
|
||||
|
||||
print("OK")
|
||||
yield
|
||||
|
||||
await db.disconnect()
|
||||
|
Reference in New Issue
Block a user