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

ConnectionDoesNotExistError, connection was closed in the middle of operation #1598

Open
Cheesy008 opened this issue Apr 30, 2024 · 0 comments

Comments

@Cheesy008
Copy link

Hello
This exception rarely occures in our prod environment and I'm wondering if it's possible to fix it somehow, maybe by using some retry logic in queries.
We use tortoise along with FastAPI. Our default configuration is 10 MIN/MAX database pool size and 2 uvicorn workers.
I found the same issue #134. That user created fork of this repo and tried to add logic with retry. Is this retry approach suitable for solving this problem?

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

1 participant