Queue the smallest backfill jobs first and show queued state

This commit is contained in:
Fisto
2026-09-17 09:05:22 +02:00
parent 6ae2ff5ab3
commit c6a16a63f7
4 changed files with 22 additions and 8 deletions
+5
View File
@@ -740,3 +740,8 @@
color: color-mix(in srgb, var(--color-neutral-400) 55%, transparent);
font-style: italic;
}
.vk-bot-state-queued {
background: color-mix(in srgb, var(--color-neutral-400) 18%, transparent);
color: var(--color-neutral-300);
}
+1 -1
View File
@@ -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)));