Describe the bug
After a transaction has been rolled back, we do not clean up the transaction and create a new one
Here's the relevant stacktrace we want to handle:
sqlalchemy.exc.InvalidRequestError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback().
Expected behavior
We should create a new transaction when the transaction is rolled back, and potentially retry the original question.
Describe the bug After a transaction has been rolled back, we do not clean up the transaction and create a new one
Here's the relevant stacktrace we want to handle:
Expected behavior We should create a new transaction when the transaction is rolled back, and potentially retry the original question.