Harden queue matching and retry behavior

This commit is contained in:
Dymas
2026-05-26 00:02:02 +02:00
parent 1ceb773f99
commit b72d93268c
8 changed files with 114 additions and 40 deletions
+3 -1
View File
@@ -405,7 +405,9 @@ QUEUE_HTML = r"""<!doctype html>
actions.append(actionButton("Cancel", () => queueAction(job.id, "cancel"), "danger"));
return;
}
actions.append(actionButton("Retry", () => queueAction(job.id, "retry")));
if (job.status === "failed" || job.status === "canceled") {
actions.append(actionButton("Retry", () => queueAction(job.id, "retry")));
}
actions.append(actionButton("Remove", () => queueAction(job.id, "remove")));
}