Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FastAPI lifespan doesn' work with router #41

Closed
mcgfeller opened this issue Jan 5, 2024 · 0 comments
Closed

FastAPI lifespan doesn' work with router #41

mcgfeller opened this issue Jan 5, 2024 · 0 comments
Assignees
Labels
cleanup Cleanup code or feature upstream Maintenance due to upstream package versions

Comments

@mcgfeller
Copy link
Owner

See tiangolo/fastapi#9630.

Note we work around by explicitely restating fastapi.FastAPI(lifespan=fastapi_dapp.lifespan) when creating the app.

@mcgfeller mcgfeller added cleanup Cleanup code or feature upstream Maintenance due to upstream package versions labels Jan 5, 2024
@mcgfeller mcgfeller self-assigned this Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Cleanup code or feature upstream Maintenance due to upstream package versions
Projects
None yet
Development

No branches or pull requests

1 participant