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:
@@ -39,7 +39,10 @@ def fixed_settings(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
(settings.auth, {"session_ttl_seconds": 3600}),
|
||||
(settings.idempotency, {"ttl_seconds": 86400}),
|
||||
(settings.cache, {"chat_ttl_seconds": 600}),
|
||||
(settings.uploads, {"body_timeout_seconds": 1}),
|
||||
(
|
||||
settings.uploads,
|
||||
{"body_timeout_seconds": 1, "max_unfinished_jobs": 0},
|
||||
),
|
||||
(settings.app, {"instance_id": "test-instance"}),
|
||||
)
|
||||
for section, fields in fixed:
|
||||
|
||||
Reference in New Issue
Block a user