diff --git a/api/models/model.py b/api/models/model.py index 8608b12af1fc8e..d3c69cfbe1278e 100644 --- a/api/models/model.py +++ b/api/models/model.py @@ -700,8 +700,10 @@ def admin_feedback_stats(self): 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, }