Queue the smallest backfill jobs first and show queued state
This commit is contained in:
+1
-1
@@ -615,7 +615,7 @@
|
||||
row.append(progress);
|
||||
|
||||
const actions = el("div", "vk-bot-job-actions");
|
||||
if (job.state === "running") {
|
||||
if (job.state === "running" || job.state === "queued") {
|
||||
actions.append(button("Pause", () => void backfillAction("pause", job.chatId)));
|
||||
} else if (job.pending > 0) {
|
||||
actions.append(button("Start", () => void backfillAction("start", job.chatId)));
|
||||
|
||||
Reference in New Issue
Block a user