feat(xq0011): 支持检查项选择并增加岗位等核心字段到异常名单

This commit is contained in:
2026-09-29 08:47:27 +08:00
parent 87f995ca47
commit f8f108af5d
100 changed files with 11920 additions and 1121 deletions
+4 -1
View File
@@ -327,7 +327,10 @@ async function tick() {
const t = Date.parse(s.last_run_at.replace(" ", "T"));
if (!Number.isNaN(t)) last = new Date(t);
}
const nxt = nextMatch(cron, last || now);
// 锚点:有 last_run_at 用之(下个点过线 120s 内仍触发);新任务无记忆时回看一个容差窗,
// 否则"刚过去 12s 的首个到点"会被 now 锚点直接跳到下一天,新建任务永远不触发
const anchor = last || new Date(now.getTime() - CATCHUP_SKIP_MS);
const nxt = nextMatch(cron, anchor);
if (!nxt || nxt.getTime() > now.getTime()) continue; // 未来触发点
if (!isDueNow(nxt, now)) {
// 错过:壳子停机/离线期间到点,时间过了就过了,不补跑(要补就人工运行一次)。