fix: 清理巡检报告调度器残留临时调试代码
Some checks failed
AI automation / Route event (push) Has been cancelled
AI automation / Hand reopened issue to maintainers (push) Has been cancelled
AI automation / Clean source issue state (push) Has been cancelled
AI automation / Reconcile handoffs (push) Has been cancelled
AI automation / Classify issue (push) Has been cancelled
AI automation / Claude Code smoke (push) Has been cancelled
AI automation / Review issue follow-up (push) Has been cancelled
AI automation / Publish issue follow-up (push) Has been cancelled
AI automation / Implement with Claude Code (push) Has been cancelled
AI automation / Publish implement PR (push) Has been cancelled
AI automation / Continue queued issue comments (push) Has been cancelled
AI automation / Codex review loop (push) Has been cancelled
AI automation / Publish Codex fix (push) Has been cancelled
AI automation / Clear Codex dispatch marker (push) Has been cancelled
AI automation / Own PR re-request Codex (push) Has been cancelled
AI automation / External PR re-request Codex (push) Has been cancelled
AI automation / Poll Codex reaction / retry (push) Has been cancelled
Some checks failed
AI automation / Route event (push) Has been cancelled
AI automation / Hand reopened issue to maintainers (push) Has been cancelled
AI automation / Clean source issue state (push) Has been cancelled
AI automation / Reconcile handoffs (push) Has been cancelled
AI automation / Classify issue (push) Has been cancelled
AI automation / Claude Code smoke (push) Has been cancelled
AI automation / Review issue follow-up (push) Has been cancelled
AI automation / Publish issue follow-up (push) Has been cancelled
AI automation / Implement with Claude Code (push) Has been cancelled
AI automation / Publish implement PR (push) Has been cancelled
AI automation / Continue queued issue comments (push) Has been cancelled
AI automation / Codex review loop (push) Has been cancelled
AI automation / Publish Codex fix (push) Has been cancelled
AI automation / Clear Codex dispatch marker (push) Has been cancelled
AI automation / Own PR re-request Codex (push) Has been cancelled
AI automation / External PR re-request Codex (push) Has been cancelled
AI automation / Poll Codex reaction / retry (push) Has been cancelled
This commit is contained in:
@@ -178,14 +178,12 @@ export function useReportAutoScheduler() {
|
|||||||
const tick = useCallback(async () => {
|
const tick = useCallback(async () => {
|
||||||
if (runningRef.current) return;
|
if (runningRef.current) return;
|
||||||
const cfg = scheduleRef.current;
|
const cfg = scheduleRef.current;
|
||||||
// 临时验证:忽略 enabled 检查
|
if (!cfg?.enabled) return;
|
||||||
// if (!cfg?.enabled) return;
|
|
||||||
if (cfg.enabledDeviceIds && cfg.enabledDeviceIds.length === 0) return;
|
if (cfg.enabledDeviceIds && cfg.enabledDeviceIds.length === 0) return;
|
||||||
|
|
||||||
const intervalMs = 2 * 60 * 1000; // 临时验证:强制 2 分钟
|
const intervalMs = (cfg.defaultIntervalHours || 1) * 3600 * 1000;
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
|
|
||||||
// 临时验证:首次立即执行,不等快照时间
|
|
||||||
if (lastRunAtRef.current !== 0 && now - lastRunAtRef.current < intervalMs) return;
|
if (lastRunAtRef.current !== 0 && now - lastRunAtRef.current < intervalMs) return;
|
||||||
|
|
||||||
runningRef.current = true;
|
runningRef.current = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user