chore: migrate @app.on_event('startup') to FastAPI lifespan handler #70
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/peregrine#70
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
dev_api.pyuses the deprecated@app.on_event('startup')pattern (line ~142), which triggers a deprecation warning in recent FastAPI versions.Change
Migrate to the
lifespancontext manager pattern:Priority
Low — deprecation warning only, no functional impact yet.
Migrated in
c0649c7.@app.on_event("startup")replaced with@asynccontextmanager async def lifespan(app). Startup logic unchanged; no shutdown handler needed. All 671 tests pass.