Chore/code format and Repair commit_id 3254018d more deleted codes and Fix naming error ambiguity between workflow_run_id and workflow_id (#17075)
Co-authored-by: 刘江波 <jiangbo721@163.com>
This commit is contained in:
parent
34cba83ac4
commit
a1aa325ce3
9 changed files with 22 additions and 21 deletions
|
|
@ -791,7 +791,7 @@ class Conversation(db.Model): # type: ignore[name-defined]
|
|||
WorkflowRunStatus.SUCCEEDED: 0,
|
||||
WorkflowRunStatus.FAILED: 0,
|
||||
WorkflowRunStatus.STOPPED: 0,
|
||||
WorkflowRunStatus.PARTIAL_SUCCESSED: 0,
|
||||
WorkflowRunStatus.PARTIAL_SUCCEEDED: 0,
|
||||
}
|
||||
|
||||
for message in messages:
|
||||
|
|
@ -802,7 +802,7 @@ class Conversation(db.Model): # type: ignore[name-defined]
|
|||
{
|
||||
"success": status_counts[WorkflowRunStatus.SUCCEEDED],
|
||||
"failed": status_counts[WorkflowRunStatus.FAILED],
|
||||
"partial_success": status_counts[WorkflowRunStatus.PARTIAL_SUCCESSED],
|
||||
"partial_success": status_counts[WorkflowRunStatus.PARTIAL_SUCCEEDED],
|
||||
}
|
||||
if messages
|
||||
else None
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ class Workflow(Base):
|
|||
tenant_id: Mapped[str] = mapped_column(StringUUID, nullable=False)
|
||||
app_id: Mapped[str] = mapped_column(StringUUID, nullable=False)
|
||||
type: Mapped[str] = mapped_column(db.String(255), nullable=False)
|
||||
version: Mapped[str]
|
||||
version: Mapped[str] = mapped_column(db.String(255), nullable=False)
|
||||
marked_name: Mapped[str] = mapped_column(default="", server_default="")
|
||||
marked_comment: Mapped[str] = mapped_column(default="", server_default="")
|
||||
graph: Mapped[str] = mapped_column(sa.Text)
|
||||
|
|
@ -352,7 +352,7 @@ class WorkflowRunStatus(StrEnum):
|
|||
SUCCEEDED = "succeeded"
|
||||
FAILED = "failed"
|
||||
STOPPED = "stopped"
|
||||
PARTIAL_SUCCESSED = "partial-succeeded"
|
||||
PARTIAL_SUCCEEDED = "partial-succeeded"
|
||||
|
||||
|
||||
class WorkflowRun(Base):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue