feat: bound upload memory with per-replica slots and a body deadline

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 00:23:37 +03:00
co-authored by Claude Opus 5.5
parent fc1524d0d6
commit 6cab9d3c41
55 changed files with 4133 additions and 209 deletions
+4
View File
@@ -57,6 +57,10 @@ async def lifespan(_: FastAPI) -> AsyncIterator[None]:
s3_host=s3.host,
s3_port=s3.port,
s3_bucket=s3.bucket,
uploads_max_concurrent=settings.uploads.max_concurrent,
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,
)
try:
yield