Browse Source

Diable expire_on_commit in the implemention of the WorkflowNodeExecut… (#18321)

Co-authored-by: lizb <lizb@sugon.com>
tags/1.3.0
Ganondorf 6 months ago
parent
commit
721294948c
No account linked to committer's email address

+ 1
- 1
api/repositories/workflow_node_execution/sqlalchemy_repository.py View File

""" """
# If an engine is provided, create a sessionmaker from it # If an engine is provided, create a sessionmaker from it
if isinstance(session_factory, Engine): if isinstance(session_factory, Engine):
self._session_factory = sessionmaker(bind=session_factory)
self._session_factory = sessionmaker(bind=session_factory, expire_on_commit=False)
else: else:
self._session_factory = session_factory self._session_factory = session_factory



Loading…
Cancel
Save