Parcourir la source

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

Co-authored-by: lizb <lizb@sugon.com>
tags/1.3.0
Ganondorf il y a 6 mois
Parent
révision
721294948c
Aucun compte lié à l'adresse e-mail de l'auteur

+ 1
- 1
api/repositories/workflow_node_execution/sqlalchemy_repository.py Voir le fichier

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


Chargement…
Annuler
Enregistrer