summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-09 01:11:05 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-09 01:11:05 +0000
commit1b4be14d02d3fd17beeddcce8d5056d51b19296c (patch)
treee07b83c4540cf094dcaee6f98e1ca3b7f574c32f /web
parent5ad8356b5ce4d525af079f902791559d53b67bba (diff)
task: allow requeueing BUDGET_EXCEEDED tasks
Permitted BUDGET_EXCEEDED -> QUEUED transition in ValidTransition. Updated frontend to show 'Restart' button for BUDGET_EXCEEDED tasks, allowing them to be requeued after failure.
Diffstat (limited to 'web')
-rw-r--r--web/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app.js b/web/app.js
index 9742c25..adaa0a2 100644
--- a/web/app.js
+++ b/web/app.js
@@ -125,7 +125,7 @@ function createTaskCard(task) {
}
// Footer: action buttons based on state
- const RESTART_STATES = new Set(['FAILED', 'CANCELLED']);
+ const RESTART_STATES = new Set(['FAILED', 'CANCELLED', 'BUDGET_EXCEEDED']);
if (task.state === 'PENDING' || task.state === 'RUNNING' || task.state === 'READY' || task.state === 'BLOCKED' || task.state === 'TIMED_OUT' || RESTART_STATES.has(task.state)) {
const footer = document.createElement('div');
footer.className = 'task-card-footer';