-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
AssertionError while using transactions.in_transaction #1720
Comments
Hi @DaniilChizhevskii, could you please tell how do you know that the error happens in |
Hi @henadzit
|
I tried to reproduce the issue by severing the connection between a sample app and MySQL but no luck. Please let me know if you have more context. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I use Tortoise ORM with FastAPI contrib and MySQL database. There are some places in my code where I use
toirtoise.transactions.in_transaction
and it causes this error sometimes:I use multiple gunicorn workers and all of them having this issue simultaneously. Issue repeats several times an hour.
To Reproduce
Create FastAPI application with registered Tortoise:
Add transaction somewhere in your routes:
And MySQL connection:
mysql://root:password@localhost:3306/db
Expected behavior
App works normally, no exceptions got
The text was updated successfully, but these errors were encountered: