MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / lifespan

Function lifespan

plugin/app/fastapi_app.py:41–56  ·  view source on GitHub ↗
(app: FastAPI)

Source from the content-addressed store, hash-verified

39
40@asynccontextmanager
41async def lifespan(app: FastAPI):
42
43 try:
44 logger.info("fastapi app startup...")
45 logger.info("load all bundles and plugins")
46 bundle_ids = load_bundle_data()
47 load_all_bundle_handlers(bundle_ids)
48 bundle_plugin_ids = load_plugin_data(bundle_ids)
49 load_all_plugin_handlers(bundle_plugin_ids)
50 set_i18n_checksum()
51
52 yield
53
54 finally:
55
56 logger.info("fastapi app shutdown...")
57
58
59def init_route_logger(filters: List[str]):

Callers

nothing calls this directly

Calls 5

load_bundle_dataFunction · 0.90
load_all_bundle_handlersFunction · 0.90
load_plugin_dataFunction · 0.90
load_all_plugin_handlersFunction · 0.90
set_i18n_checksumFunction · 0.90

Tested by

no test coverage detected