fix(automation): 被重启打断的轮次记为 interrupted,不再混进 failed
部署重建容器会打断正在跑的作业,那轮永远写不回结果,由启动时的 cleanup_orphan_runs 收尾。之前收尾成 failed,于是页面上一片红 —— 但这并不是 作业本身的失败:账号侧的 CK 一个没丢(旧 Cookie 已保留),被中断的账号也会按 退避自动重试。混在 failed 里会掩盖真正的失败(如 SQL 语法错误)。 改为独立状态 interrupted,前端用中性灰显示「被中断」,与红色的「失败」区分开。
This commit is contained in:
@@ -31,6 +31,9 @@ import { formatTime } from "../utils/time";
|
||||
const STATUS_TAG: Record<string, { color: string; text: string }> = {
|
||||
success: { color: "green", text: "成功" },
|
||||
failed: { color: "red", text: "失败" },
|
||||
// 被部署/重启打断:不是作业本身的失败(CK 没丢,会自动重试),
|
||||
// 用中性色,避免和真失败混在一起。
|
||||
interrupted: { color: "default", text: "被中断" },
|
||||
running: { color: "blue", text: "执行中" },
|
||||
skipped: { color: "default", text: "已跳过" },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user