Queue the smallest backfill jobs first and show queued state
This commit is contained in:
@@ -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
@@ -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