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
We're stuck on an old version of pandas when using flowmachine, because new pandas uses new sqlalchemy which deprecated threadlocal strategy.
We assume threadlocal throughout flowmachine's codebase at present in a way which is quite challenging to unpick, because one of the side effects of it is that one can be in a transaction in a very concealed way. For example, everything in write_query_to_cache is in a single transaction, but this is not immediately obvious.
We're quite inconsistent about when we pass in a connection (and what a connection is when passed), and when we summon one from context using get_db(), which also makes this a bit difficult to resolve.
The text was updated successfully, but these errors were encountered:
I'm wondering if the way to resolve this is to never pass the db connection?
The db connection is available from context, what if we extend that and say db accessible only through context handler, there are two handlers: fresh transaction and nested within current transaction?
We're stuck on an old version of pandas when using flowmachine, because new pandas uses new sqlalchemy which deprecated threadlocal strategy.
We assume threadlocal throughout flowmachine's codebase at present in a way which is quite challenging to unpick, because one of the side effects of it is that one can be in a transaction in a very concealed way. For example, everything in
write_query_to_cache
is in a single transaction, but this is not immediately obvious.We're quite inconsistent about when we pass in a connection (and what a connection is when passed), and when we summon one from context using
get_db()
, which also makes this a bit difficult to resolve.The text was updated successfully, but these errors were encountered: