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

fix: fix DB session management to avoid connection overflow error #1758

Merged
merged 13 commits into from
Sep 18, 2024

Conversation

sarahwooders
Copy link
Collaborator

@sarahwooders sarahwooders commented Sep 18, 2024

Please describe the purpose of this pull request.
This centralizes the session manager used by SQLAlchemy, and resolves the connection errors that the locust tests were generating.

How to test
Run poetry run locust -f locust_test.py with docker - test on ~100 users (20 requests / s)

Have you tested this PR?
Yes

Copy link
Owner

@cpacker cpacker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌🙌🙌

@sarahwooders sarahwooders merged commit 45a1101 into main Sep 18, 2024
11 of 12 checks passed
@sarahwooders sarahwooders deleted the fix-connection-issue branch September 18, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
2 participants