Skip to content

Commit 7212949

Browse files
ZombieBluelizb
and
lizb
authored
Diable expire_on_commit in the implemention of the WorkflowNodeExecut… (#18321)
Co-authored-by: lizb <[email protected]>
1 parent b287aac commit 7212949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/repositories/workflow_node_execution/sqlalchemy_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, session_factory: sessionmaker | Engine, tenant_id: str, app_i
3636
"""
3737
# If an engine is provided, create a sessionmaker from it
3838
if isinstance(session_factory, Engine):
39-
self._session_factory = sessionmaker(bind=session_factory)
39+
self._session_factory = sessionmaker(bind=session_factory, expire_on_commit=False)
4040
else:
4141
self._session_factory = session_factory
4242

0 commit comments

Comments
 (0)