Enhance: list every photo's open jobs (jobs manager) #211

Merged
cameron merged 1 commits from feat/enhance-jobs-list into master 2026-11-02 13:28:52 +00:00
Owner

Server side of FileViewer-React #99 (Enhance jobs manager).

GET /enhance/jobs without path lists every photo's open jobs:

  • queued / running / unavailable always
  • ready / failed / expired if touched in the last 3 days (OPEN_JOBS_WINDOW_SECS), so stale leftovers don't pile up
  • newest first, discarded and approved hidden, max 100
  • DB only (the poller keeps rows current), never calls ComfyUI

Optional status=a,b filters either form. With path the behavior is unchanged. Template labels stay client-side (the app already has /enhance/templates).

Tests: DAO list_open unit test, an integration test across two photos with discard and the status filter. cargo clippy --all-targets is clean.

🤖 Generated with Claude Code

Server side of FileViewer-React #99 (Enhance jobs manager). `GET /enhance/jobs` without `path` lists every photo's open jobs: - queued / running / unavailable always - ready / failed / expired if touched in the last 3 days (`OPEN_JOBS_WINDOW_SECS`), so stale leftovers don't pile up - newest first, discarded and approved hidden, max 100 - DB only (the poller keeps rows current), never calls ComfyUI Optional `status=a,b` filters either form. With `path` the behavior is unchanged. Template labels stay client-side (the app already has `/enhance/templates`). Tests: DAO `list_open` unit test, an integration test across two photos with discard and the status filter. `cargo clippy --all-targets` is clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
cameron added 1 commit 2026-11-02 03:14:31 +00:00
GET /enhance/jobs without a path now answers the jobs manager (FVR #99):
every photo's queued / running / unavailable jobs, plus ready / failed /
expired ones touched in the last 3 days, newest first, discarded and
approved hidden, at most 100. DB only; the poller keeps rows current.
An optional status=a,b filter applies to both forms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cameron merged commit 4d9e62d05d into master 2026-11-02 13:28:52 +00:00
cameron deleted branch feat/enhance-jobs-list 2026-11-02 13:28:53 +00:00
Sign in to join this conversation.