remove poller
This commit is contained in:
@@ -3,8 +3,6 @@
|
|||||||
// GET /api/queue -> { pending: [], current: { task, startedAt, log } | null }
|
// GET /api/queue -> { pending: [], current: { task, startedAt, log } | null }
|
||||||
// GET /api/history -> { scripts: [], history: { scriptPath: [record, ...] } }
|
// GET /api/history -> { scripts: [], history: { scriptPath: [record, ...] } }
|
||||||
|
|
||||||
const POLL_QUEUE_MS = 1500; // 队列 + 当前执行 轮询周期
|
|
||||||
const POLL_HISTORY_MS = 4000; // 历史 轮询周期
|
|
||||||
const LOG_TAIL_CHARS = 12000; // 前端日志渲染尾部最大字符数
|
const LOG_TAIL_CHARS = 12000; // 前端日志渲染尾部最大字符数
|
||||||
|
|
||||||
const state = {
|
const state = {
|
||||||
@@ -313,5 +311,3 @@ document.addEventListener("keydown", (e) => {
|
|||||||
|
|
||||||
pollQueue();
|
pollQueue();
|
||||||
pollHistory();
|
pollHistory();
|
||||||
setInterval(pollQueue, POLL_QUEUE_MS);
|
|
||||||
setInterval(pollHistory, POLL_HISTORY_MS);
|
|
||||||
|
|||||||
Reference in New Issue
Block a user