Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

Ganondorf721294948c8f
diff --git a/api/repositories/workflow_node_execution/sqlalchemy_repository.py b/api/repositories/workflow_node_execution/sqlalchemy_repository.py
index 01c54dfcd76..c9c6e70ff34 100644
--- a/api/repositories/workflow_node_execution/sqlalchemy_repository.py
+++ b/api/repositories/workflow_node_execution/sqlalchemy_repository.py
@@ -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