feat: limit accepted attachment work and add queue overload bench

Reject uploads with 429 at [uploads] max_unfinished_jobs, counted by the existing partial indexes in the membership block. Add the bench_queue profile, hypotheses H1-H9 and the fifth failure-stand API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 07:30:08 +03:00
co-authored by Claude Opus 5.5
parent 5b5f59aa3b
commit d667fa3c57
53 changed files with 5043 additions and 122 deletions
+4 -1
View File
@@ -74,7 +74,10 @@ paths:
`attachment_job.py` (`insert_job`, `lock_job` — `FOR UPDATE`, `get_job`,
`get_attachment_job`, `start_attempt`, `return_to_queued` с условием своей
попытки, `finish_job`; relay — `lock_due_jobs` (`FOR UPDATE SKIP LOCKED`,
порядок по выражению индекса), `count_published`, `mark_published` пакета,
порядок по выражению индекса), `count_published`, `count_unfinished` (сумма трёх
`count(*)` с `LIMIT` на группу по условиям частичных индексов outbox, опубликованных
и аренды: цена не растёт с превышением, число выше предела неточно, design change
`track1-queue-overload`, решение 3), `mark_published` пакета,
`recover_expired_leases`, `has_published_before`, `reset_published_before`;
`replay_job`, `list_failed` — состояние в выборках relay константой
`literal_execute`), `attachment_job_replay.py` (`insert_replay`,