mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
Modify ChatConversationApi to include pause state in status_count (vibe-kanban 4f35bf71)
If the workflow generating a message is paused, the status\_count should count it as paused.
This commit is contained in:
@ -868,6 +868,7 @@ class Conversation(Base):
|
||||
WorkflowExecutionStatus.FAILED: 0,
|
||||
WorkflowExecutionStatus.STOPPED: 0,
|
||||
WorkflowExecutionStatus.PARTIAL_SUCCEEDED: 0,
|
||||
WorkflowExecutionStatus.PAUSED: 0,
|
||||
}
|
||||
|
||||
for message in messages:
|
||||
@ -888,6 +889,7 @@ class Conversation(Base):
|
||||
"success": status_counts[WorkflowExecutionStatus.SUCCEEDED],
|
||||
"failed": status_counts[WorkflowExecutionStatus.FAILED],
|
||||
"partial_success": status_counts[WorkflowExecutionStatus.PARTIAL_SUCCEEDED],
|
||||
"paused": status_counts[WorkflowExecutionStatus.PAUSED],
|
||||
}
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user