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 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. 
Does that hunch sound correct?

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/e2a9ee96-e089-49eb-92c0-91cc7af4e08cn%40googlegroups.com.

Reply via email to