(app: FastAPI)
| 394 | |
| 395 | @asynccontextmanager |
| 396 | async def lifespan(app: FastAPI): |
| 397 | # Load static artifacts before initializing store |
| 398 | await load_static_artifacts(app, store) |
| 399 | |
| 400 | await store.initialize() |
| 401 | async_refresh() |
| 402 | try: |
| 403 | yield |
| 404 | finally: |
| 405 | stop_refresh() |
| 406 | if offline_batcher is not None: |
| 407 | offline_batcher.shutdown() |
| 408 | await store.close() |
| 409 | |
| 410 | app = FastAPI(lifespan=lifespan) |
| 411 |
nothing calls this directly
no test coverage detected