diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-09 01:11:05 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-09 01:11:05 +0000 |
| commit | 1b4be14d02d3fd17beeddcce8d5056d51b19296c (patch) | |
| tree | e07b83c4540cf094dcaee6f98e1ca3b7f574c32f /web/app.js | |
| parent | 5ad8356b5ce4d525af079f902791559d53b67bba (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/app.js')
| -rw-r--r-- | web/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'; |
