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.
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)
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 master2026-11-02 13:28:52 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Server side of FileViewer-React #99 (Enhance jobs manager).
GET /enhance/jobswithoutpathlists every photo's open jobs:OPEN_JOBS_WINDOW_SECS), so stale leftovers don't pile upOptional
status=a,bfilters either form. Withpaththe behavior is unchanged. Template labels stay client-side (the app already has/enhance/templates).Tests: DAO
list_openunit test, an integration test across two photos with discard and the status filter.cargo clippy --all-targetsis clean.🤖 Generated with Claude Code