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

Mangum does not cache database connection pools in AWS Lambda #142

Closed
vincentsarago opened this issue Jan 13, 2023 · 1 comment
Closed

Comments

@vincentsarago
Copy link
Contributor

handler = Mangum(app, lifespan="auto")

ref: stac-utils/stac-fastapi#493
Fix: https://github.com/developmentseed/eoAPI/blob/f559c6a8cc33c94e0b5e57c2a4426dc82bf7df92/stack/handlers/raster_handler.py#L14-L18

@anayeaye
Copy link
Collaborator

Thanks @vincentsarago and @ividito!

@ividito ividito closed this as completed Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants