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.

fix: Change 'commit' to 'flush' to prevent subsequent transaction fai… (#35243)

zyssyz12379332c0e5e81
diff --git a/api/services/app_dsl_service.py b/api/services/app_dsl_service.py
index 87c28980ab0..74b800606da 100644
--- a/api/services/app_dsl_service.py
+++ b/api/services/app_dsl_service.py
@@ -455,7 +455,7 @@ class AppDslService:
app.updated_by = account.id
self._session.add(app)
- self._session.commit()
+ self._session.flush()
app_was_created.send(app, account=account)
# save dependencies