feat: add job outbox, relay, leases and image variants to the pipeline

Move publishing out of the upload path: a relay process publishes queued
jobs with confirms. Add lease and attempt fencing, backoff with jitter, a
per-job render process with CPU and memory limits, crop and optimized
variants, the failed registry with audited replay, and staging cleanup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-31 15:36:15 +03:00
co-authored by Claude Opus 5.5
parent 99a222eee2
commit e2a6427c24
102 changed files with 9499 additions and 1916 deletions
+5 -1
View File
@@ -669,7 +669,11 @@ def test_no_storage_traces(
attachment["id"],
variant="thumbnail",
)
assert_variant_content(thumbnail, ready["variants"][0])
# порядок вариантов контракт не задаёт: вариант — по имени
assert_variant_content(
thumbnail,
next(v for v in ready["variants"] if v["name"] == "thumbnail"),
)
for resp in (upload, meta, content, thumbnail):
assert_no_storage_traces(resp)