You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got a part of my code to use sqlalchemy-continuum after a figuring out a bunch of stuff
When I ran my unit tests, I got this warning 800+ times:
00:21:29.767 /io/venv/lib/python3.6/site-packages/sqlalchemy_continuum/unit_of_work.py:123: SAWarning:
00:21:29.767
00:21:29.767 Usage of the 'Session.add()' operation is not currently supported within the execution stage of the flush process. Results may not be consistent. Consider using alternative event listeners or connection-level operations instead.
def process_before_flush(self, session):
...
if not self.current_transaction:
self.create_transaction(session)
...
session.add(self.current_transaction)
If you're seeing this message, I suspect something is incorrectly changing the state of the transaction, perhaps re-entry of some kind. Can you create a minimal complete reproduction for this warning?
I got a part of my code to use sqlalchemy-continuum after a figuring out a bunch of stuff
When I ran my unit tests, I got this warning 800+ times:
On checking, it seems this warning has been there in sqlalchemy since the past 10+ years (since sqlalchemy 0.8)
sqlalchemy/sqlalchemy@1c3e3225521647cc843a633e34ed84e1ca4e797aj
I'm wondering if I am using sqla-continuum wrongly ? Or is it expected ?
The text was updated successfully, but these errors were encountered: