fix(jobs): cancel running + delete failed jobs so the queue can be unstuck #28
No reviewers
Labels
No labels
bug
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: WildDragonLLC/dragonflight#28
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/jobs-cancel-stuck"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The Jobs page only exposed a delete button for
queuedanddonejobs. A stalled-active job (worker died holding a BullMQ concurrency slot) had no kill switch in the UI, so a single stuck thumbnail job could back the entire queue up behind it.DELETE /jobs/:idendpoint; BullMQ'sjob.remove()works on any state including stalled-active.handleDeletetakes an optionalmode('cancel'/'delete') only to customise the confirm prompt and error toast wording. Action cell is right-aligned for consistency with other tables.Test plan
🤖 Generated with Claude Code
The Jobs page only exposed a delete button for queued + done jobs, so a stalled-active job (worker died holding a BullMQ concurrency slot) had no way out from the UI. Operators were watching the queue back up behind a single stuck thumbnail job with no kill switch. - Running jobs now show a "Cancel" button (red text). Confirm copy spells out that the worker may run a few seconds longer in the background but the queue slot frees up immediately. - Failed jobs now show the X icon for delete in addition to the existing Retry button. - Both routes hit the same DELETE /jobs/:id endpoint; BullMQ's job.remove() works on any state including stalled-active. - handleDelete takes an optional mode ('cancel' | 'delete') only to customise the confirm prompt and error toast wording. Right-aligned the action cell so the Retry/Cancel/Delete buttons sit flush right like the rest of the table's actions. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>