Skip to content

Add discard actions for ready, scheduled, and blocked jobs#8

Merged
eclectic-coding merged 1 commit into
mainfrom
feature/job-actions
May 18, 2026
Merged

Add discard actions for ready, scheduled, and blocked jobs#8
eclectic-coding merged 1 commit into
mainfrom
feature/job-actions

Conversation

@eclectic-coding
Copy link
Copy Markdown
Owner

Summary

  • DELETE /jobs/:id — discard a single ready, scheduled, or blocked job
  • POST /jobs/discard_all — bulk discard all jobs for the current status and optional queue filter
  • Per-row Discard button and page-level Discard All button rendered only for discardable statuses
  • Claimed (running) jobs are intentionally excluded; failed jobs already have their own page
  • 20 request specs total (8 new), all passing

Test plan

  • CI lint and test matrix passes
  • Jobs page (Ready tab) shows a Discard button per row
  • Discard All button appears in the page header when jobs are present
  • Running/Failed tabs show no discard buttons
  • Discarding a job removes it from the list with a flash notice
  • Discard All respects the active queue filter

🤖 Generated with Claude Code

- DELETE /jobs/:id discards a single execution via Execution#discard
- POST /jobs/discard_all bulk-discards all jobs for the current status/queue
- Discard button shown per row; Discard All button in page header
- Actions restricted to ready/scheduled/blocked — claimed jobs are actively
  running and failed jobs have their own dedicated page
- Request specs covering single discard, bulk discard, and guard against
  discarding claimed jobs (8 examples)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eclectic-coding eclectic-coding merged commit 1cbd5cc into main May 18, 2026
5 checks passed
@eclectic-coding eclectic-coding deleted the feature/job-actions branch May 18, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant