feat: process attachments asynchronously with RabbitMQ and a worker
Upload answers 202 after staging, a queued job in PostgreSQL and a broker confirm; a separate worker publishes the original and a thumbnail with bounded retries. Adds the job and variant tables, the broker service, the worker S3 user, cleanup and reconcile support for staging and variants, the failure stand with broker and worker, bench and driver updates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+4
-3
@@ -23,6 +23,10 @@ dependencies = [
|
||||
# клиент S3 (SeaweedFS), решение 6 design change s3-storage;
|
||||
# botocore закреплён узко, обновлять вместе через uv lock
|
||||
"aiobotocore>=3.9.2,<4",
|
||||
# клиент RabbitMQ (design change async-attachments, решение 5)
|
||||
"aio-pika>=10.2.1,<11",
|
||||
# thumbnail в процессе worker; импортирует только src/utils/thumbnail.py
|
||||
"pillow>=13,<14",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
@@ -66,9 +70,6 @@ dev = [
|
||||
"pytest>=9.1.1,<10",
|
||||
"httpx>=0.28.1,<1",
|
||||
"jsonschema>=4.26.0,<5",
|
||||
# student-tests: JPEG разных видов в памяти теста; в образ (uv sync
|
||||
# --no-dev) и в приложение не входит
|
||||
"pillow>=13.0.0,<14",
|
||||
]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
|
||||
Reference in New Issue
Block a user