MCPcopy Create free account
hub / github.com/ScrapeGraphAI/scrapecraft / lifespan

Function lifespan

backend/app/main.py:18–23  ·  view source on GitHub ↗
(app: FastAPI)

Source from the content-addressed store, hash-verified

16
17@asynccontextmanager
18async def lifespan(app: FastAPI):
19 # Startup
20 logger.info(f"Starting {settings.APP_NAME} v{settings.VERSION}")
21 yield
22 # Shutdown
23 logger.info("Shutting down...")
24
25app = FastAPI(
26 title=settings.APP_NAME,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected