forked from mtusi2026/mtusi2026lab5
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 с хешами).
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
# Direct runtime dependencies. The pinned lock with hashes is requirements.txt:
|
|
# docker run --rm -v "$PWD:/w" -w /w python:3.13.16-slim-bookworm \
|
|
# sh -c "pip install -q pip-tools==7.6.1 && pip-compile --generate-hashes --strip-extras --no-emit-index-url -o requirements.txt requirements.in"
|
|
starlette==1.7.0
|
|
uvicorn==0.54.0
|
|
# Fast C parser/event loop used by uvicorn in the container (Linux only).
|
|
httptools==0.9.0
|
|
uvloop==0.23.0 ; sys_platform != "win32"
|
|
# PostgreSQL driver (libpq bundled in the binary wheel) and its async connection pool.
|
|
psycopg==3.3.6
|
|
psycopg-binary==3.3.6
|
|
psycopg-pool==3.3.3
|
|
# Valkey client (Valkey speaks the Redis protocol).
|
|
redis==8.1.0
|
|
# Argon2id password KDF.
|
|
argon2-cffi==25.1.0
|
|
# Lab 4: S3 client (async botocore over aiohttp; requests are cancellable, unlike libpq cancel).
|
|
aiobotocore==3.9.2
|
|
# 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).
|