forked from mtusi2026/mtusi2026lab5
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:
@@ -61,6 +61,7 @@ async def lifespan(_: FastAPI) -> AsyncIterator[None]:
|
||||
uploads_max_waiting=settings.uploads.max_waiting,
|
||||
uploads_wait_timeout_seconds=settings.uploads.wait_timeout_seconds,
|
||||
uploads_body_timeout_seconds=settings.uploads.body_timeout_seconds,
|
||||
uploads_max_unfinished_jobs=settings.uploads.max_unfinished_jobs,
|
||||
)
|
||||
try:
|
||||
yield
|
||||
|
||||
Reference in New Issue
Block a user