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:log error(#11942) (#11943)

呆萌闷油瓶e22cc2811462
diff --git a/api/models/model.py b/api/models/model.py
index 8608b12af1f..d3c69cfbe12 100644
--- a/api/models/model.py
+++ b/api/models/model.py
@@ -700,8 +700,10 @@ class Conversation(db.Model):
def status_count(self):
messages = db.session.query(Message).filter(Message.conversation_id == self.id).all()
status_counts = {
+ WorkflowRunStatus.RUNNING: 0,
WorkflowRunStatus.SUCCEEDED: 0,
WorkflowRunStatus.FAILED: 0,
+ WorkflowRunStatus.STOPPED: 0,
WorkflowRunStatus.PARTIAL_SUCCESSED: 0,
}