[sqlalchemy] Re: Shared ORM objects between threads

2022-07-05 Thread 'Ben Chopson' via sqlalchemy
Thanks Jonathan, that should help me move forward. On Tuesday, July 5, 2022 at 12:51:52 PM UTC-4 Jonathan Vanasco wrote: > > > I'm guessing we shouldn't be passing ORM objects to threads, but rather > just passing IDs and then querying the full object in the thread function > > Correct. > > Data

[sqlalchemy] Shared ORM objects between threads

2022-06-30 Thread 'Ben Chopson' via sqlalchemy
Hi, I'm troubleshooting some code that uses thread_pool_executor to run a function, passing an ORM entity as an argument. Within the executed function, we are sometimes receiving a "Value Error: generator already executing" when accessing a related entity via a relationship property. I'm guess