forked from mtusi2026/mtusi2026lab5
lab5: схема 0005 (jobs, outbox, попытки, варианты, аудит) и модули pipeline
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Миграция только добавляет: статусы pending/queued/processing/ready/failed, staging-ключ, published_version, jobs с lease и токеном попытки, job_attempts с заранее известными ключами, attachment_variants (PK = ключ эффекта), outbox, job_events, view failed_jobs, post_message_v3. CHECK attachments_active_has_source: у queued/processing всегда есть источник. pipeline.py — версии 1/2/3 и геометрия по контракту; imaging.py — варианты в дочернем процессе (RLIMIT_AS, таймаут, лимит пикселей); jobs.py — все переходы заданий одной транзакцией с fencing по токену; broker.py — топология и строгая схема сообщения. Зависимости: aio-pika 9.6.2, pillow 12.3.0 (lock с хешами).
This commit is contained in:
+5
-1
@@ -16,5 +16,9 @@ redis==8.1.0
|
||||
argon2-cffi==25.1.0
|
||||
# Lab 4: S3 client (async botocore over aiohttp; requests are cancellable, unlike libpq cancel).
|
||||
aiobotocore==3.9.2
|
||||
# Images are checked without Pillow: PNG by src/messenger/images.py, JPEG by libjpeg-turbo
|
||||
# Lab 5: AMQP 0-9-1 client for RabbitMQ (publisher confirms, consumer acks, prefetch); last 9.x line.
|
||||
aio-pika==9.6.2
|
||||
# Lab 5: image variants in the worker only (thumbnail/crop JPEG, WebP). Same version as the tests.
|
||||
pillow==12.3.0
|
||||
# Uploads are still checked without Pillow: PNG by src/messenger/images.py, JPEG by libjpeg-turbo
|
||||
# `djpeg -strict` (Debian package libjpeg-turbo-progs, see Dockerfile).
|
||||
|
||||
Reference in New Issue
Block a user