remove poller

This commit is contained in:
tao.chen
2026-09-15 14:26:37 +08:00
parent cce8811900
commit 48d1f97600
-4
View File
@@ -3,8 +3,6 @@
// GET /api/queue -> { pending: [], current: { task, startedAt, log } | null }
// GET /api/history -> { scripts: [], history: { scriptPath: [record, ...] } }
const POLL_QUEUE_MS = 1500; // 队列 + 当前执行 轮询周期
const POLL_HISTORY_MS = 4000; // 历史 轮询周期
const LOG_TAIL_CHARS = 12000; // 前端日志渲染尾部最大字符数
const state = {
@@ -313,5 +311,3 @@ document.addEventListener("keydown", (e) => {
pollQueue();
pollHistory();
setInterval(pollQueue, POLL_QUEUE_MS);
setInterval(pollHistory, POLL_HISTORY_MS);