feat: jobs run one at a time, parallelism per photo and a priority queue
Owner review 1, phase 2 (docs/requests/2026-10-15-owner-review-1.md, R2). Jobs now run one at a time on the desktop and on the server. Parallelism (Settings > Rendering, TITANO_PARALLELISM) is how many photos the running job processes at once: thumbnail and proxy passes draw that many photos together and still write the pack and checkpoints in frame order, decode tiers are probed that many at a time, the deep analysis measures that many frames and a render decodes that many ahead. Wherever originals are developed whole (TIFF, PNG, RAW without a usable preview), fewer run at once within the memory budget, which the running job now has whole; the server's frame window is sized to the host instead of 1 GiB. A new job waits its turn and pausing the running job starts the next one. An optional priority queue gives each job kind a level (renders, imports and downloads high, verifies and proxies low by default): a queued job of a higher level pauses the running one without asking, and that job goes back to the queue with its checkpoint and resumes by itself afterwards. Jobs of the same level, and a job's own follow-ups, never interrupt it. The Jobs screen and the admin panel show the parallelism and the queue; Settings > Rendering and the admin panel's Settings set them, at once. TITANO_WORKERS and the Workers key of server.json still set the parallelism (1 to 64, with a warning at start for the variable). Titano.Tools gains i18n prune, which removed the renamed keys from the 36 machine-translated languages; the new strings are translated in all 38. Found while testing: uploads and imports failed when a pass read the sidecar while they wrote it (atomic writes now retry the rename while a reader holds the file, and never for a read-only one), and taking a lease just released while another process read it failed on Windows (the create now waits for the reader). Five adversarial review rounds checked the phase before this commit. Also updates BRIEF (12.8, 14.6, 14.8, 14.9, 24), DECISIONS, CHANGELOG, ARCHITECTURE, STATUS, the request file and the compose/Unraid templates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
34d03051f5
commit
43b6871cdc
228 files changed
+3535
-793
No files matched your search
+19
-7
@@ -838,7 +838,9 @@ Sections (list on the left, controls on the right, no descriptions — tooltips
|
||||
General (language, theme, startup, notifications), Archive (root, templates, proxy policy,
|
||||
thumbnail size, network polling), Import (defaults, session rules, verify, post-actions),
|
||||
Analysis (widths, thresholds, deep analysis auto-run), Rendering (quality profile, memory
|
||||
budget, spill folder, parallelism, encoders detected, hardware preference), Formats (per
|
||||
budget, spill folder, parallelism = photos the running job processes at once, priority queue
|
||||
with a level per job kind, encoders detected, hardware preference; amended 2026-10-16, R2),
|
||||
Formats (per
|
||||
format tier on this PC, codec install links), Server (last servers, trusted fingerprints,
|
||||
render node), Updates (check on start), Advanced (portable mode, logs, database backup/
|
||||
restore, reset). Import/export settings as JSON.
|
||||
@@ -952,10 +954,17 @@ it itself (managed formats) or hands it to a render node.
|
||||
|
||||
### 14.6 Job engine
|
||||
|
||||
Persistent queue in the DB; N worker threads (configurable, default = cores/2); job kinds
|
||||
in §5; checkpoints every 5 s (progress + resumable cursor); crash-safe restart; priorities
|
||||
Persistent queue in the DB; jobs run one at a time, and the parallelism (configurable,
|
||||
default = cores/2) is how many photos the running job processes at once; job kinds in §5;
|
||||
checkpoints every 5 s (progress + resumable cursor); crash-safe restart; priorities
|
||||
(user-initiated > background analysis); cancellation cooperative; logs per job; retention
|
||||
of history 90 days.
|
||||
of history 90 days. By default a new job waits its turn, and pausing the running job lets
|
||||
the next one start. An optional priority queue (Settings › Rendering on the desktop, the
|
||||
admin panel's Settings on the server) gives each job kind a level (high, normal, low):
|
||||
higher kinds are claimed first, and a queued job of a higher level makes the running job
|
||||
of a lower level yield without asking; that job returns to the queue with its checkpoint
|
||||
and resumes by itself afterwards. Jobs of the same level never interrupt each other, and a
|
||||
job's own follow-ups never interrupt it. (Amended 2026-10-16, R2.)
|
||||
|
||||
### 14.7 Render nodes
|
||||
|
||||
@@ -982,8 +991,8 @@ available and says so in the job log.
|
||||
|
||||
Pages: Login · Dashboard · Users (table; create/edit/disable/reset/roles/quota) · Archive
|
||||
(path, templates, proxy policy, scan/rebuild/verify, stats) · Jobs (queue/history/nodes,
|
||||
cancel/retry) · Settings (server name, ports, TLS mode + fingerprint, discovery, limits,
|
||||
language, retention) · Logs (tail, download) · About. Same UI rules: tooltips only, light/
|
||||
cancel/retry) · Settings (server name, ports, TLS mode + fingerprint, discovery, jobs:
|
||||
parallelism and priority queue, limits, language, retention) · Logs (tail, download) · About. Same UI rules: tooltips only, light/
|
||||
dark, localised via `/api/v1/i18n`, keyboard accessible.
|
||||
|
||||
### 14.9 Configuration and Docker
|
||||
@@ -995,7 +1004,9 @@ at first login), `TITANO_ARCHIVE_PATH=/archive`, `TITANO_DATA_PATH=/data`,
|
||||
`TITANO_DB_NAME`, `TITANO_DB_USER`, `TITANO_DB_PASSWORD`, `TITANO_DB_SSLMODE=prefer`,
|
||||
`TITANO_HTTP_PORT=8080`, `TITANO_HTTPS_PORT=8443`, `TITANO_TLS_MODE=auto|pem|proxy`,
|
||||
`TITANO_TLS_CERT`, `TITANO_TLS_KEY`, `TITANO_SERVER_NAME`, `TITANO_LANG=en`,
|
||||
`TITANO_WORKERS`, `TITANO_DISCOVERY=true` (LAN UDP beacon), `PUID`, `PGID`, `TZ`.
|
||||
`TITANO_PARALLELISM` (photos the running job processes at once; `TITANO_WORKERS`, its former
|
||||
name, still sets it), `TITANO_PRIORITY_QUEUE=false`, `TITANO_DISCOVERY=true` (LAN UDP beacon),
|
||||
`PUID`, `PGID`, `TZ`. (Amended 2026-10-16, R2.)
|
||||
|
||||
Dockerfile: multi-stage on `mcr.microsoft.com/dotnet/sdk:10.0` → `aspnet:10.0`, non-root
|
||||
user via `PUID/PGID` entrypoint, volumes `/archive` and `/data`, `HEALTHCHECK` on
|
||||
@@ -1315,6 +1326,7 @@ questions asked and the answers; DECISIONS rows give the reasons.
|
||||
| Date | Request | Sections | What changed |
|
||||
|---|---|---|---|
|
||||
| 2026-10-16 | Owner review 1, R4 | §8.1, §8.2 | DNG decodes through the managed decoder (WIC only through the Raw Image Extension, never DNG); a GoPro DNG is GPR only when VC-5; analyses and previews take an adequate embedded preview by choice, renders decode natively. |
|
||||
| 2026-10-16 | Owner review 1, R2 | §12.8, §14.6, §14.8, §14.9 | Jobs run one at a time; the parallelism is photos the running job processes at once; an optional priority queue by job kind pauses lower jobs and resumes them by itself; `TITANO_PARALLELISM` (former `TITANO_WORKERS`) and `TITANO_PRIORITY_QUEUE`. |
|
||||
|
||||
## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated)
|
||||
|
||||
|
||||
Reference in new issue
Block a user