refactor(publish): collapse pending_review/unknown task states into failed
Treat ambiguous terminal states as failures end-to-end: server normalizes unknown desktop task completions and views to failed, drops the pending_review aggregate branch, and remaps pending_review to failed in publish record conversion. admin-web removes the pending_review status option from article list filters, pushes pending_review through the failed tone, and folds lingering publishing/pending entries under the publishing bucket. desktop-client relabels unknown as 发送失败 in PublishManagement/TasksView, rewrites the scaffold adapter result to a proper failed error envelope, and sanitises legacy scaffold-only error messages to a user-friendly note. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -27,7 +27,7 @@ function translateTaskStatus(status: string) {
|
||||
in_progress: "执行中",
|
||||
succeeded: "成功",
|
||||
failed: "失败",
|
||||
unknown: "未知异常",
|
||||
unknown: "失败",
|
||||
aborted: "已取消",
|
||||
};
|
||||
return map[status?.toLowerCase()] || status;
|
||||
@@ -53,7 +53,7 @@ const columns = computed(() => {
|
||||
{
|
||||
key: "exception",
|
||||
title: "异常与终态 (Terminal)",
|
||||
description: "unknown、failed、succeeded 等终态或补偿态。",
|
||||
description: "failed、succeeded、aborted 等终态任务。",
|
||||
items: tasks.filter((item) => !["queued", "in_progress"].includes(item.status)),
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user