修复前端构建:移除未使用的 RUNNING_STATUS 变量

This commit is contained in:
yml2213
2026-07-12 20:26:07 +08:00
parent b2619caa14
commit 4654612d81
+1 -2
View File
@@ -74,8 +74,7 @@ const STATUS_COLORS: Record<string, string> = {
running: 'processing', running: 'processing',
}; };
// 只有真正 running 才锁 UI / 轮询;pending 可能是历史脏数据,不能当运行中 // 只有真正 running 才锁 UI / 轮询(见 isRunningpending 可能是历史脏数据
const RUNNING_STATUS = new Set(['running']);
const RETRYABLE_BATCH = new Set(['finished', 'stopped', 'error', 'interrupted', 'pending']); const RETRYABLE_BATCH = new Set(['finished', 'stopped', 'error', 'interrupted', 'pending']);
function safeNumber(value: unknown, fallback: number) { function safeNumber(value: unknown, fallback: number) {