forked from mtusi2026/mtusi2026lab5
level 4
This commit is contained in:
@@ -39,4 +39,15 @@ BROKER_URL=amqp://messenger:change-me-rabbit@rabbitmq:5672/
|
||||
WORKER_CONCURRENCY=2
|
||||
JOB_MAX_ATTEMPTS=5
|
||||
JOB_TIMEOUT_SECONDS=60
|
||||
# Full jitter before the next attempt: uniform(0, min(cap, base * 2^(attempt-1))).
|
||||
JOB_RETRY_BASE_SECONDS=0.5
|
||||
JOB_RETRY_CAP_SECONDS=30
|
||||
# A dead worker's processing row is queued again after this. A live worker refreshes it.
|
||||
# The effective lease is at least JOB_TIMEOUT_SECONDS + 30.
|
||||
JOB_LEASE_SECONDS=90
|
||||
# Ready staging is deleted after the ready commit. Failed staging is kept this long so
|
||||
# `python -m app.replay` can still read it, then removed.
|
||||
STAGING_RETENTION_SECONDS=86400
|
||||
# Derivative parameters are fixed in app/thumbnail.py, not here:
|
||||
# thumbnail JPEG q=85 inside 256, crop JPEG q=85 at 128, optimized WebP q=80 method=4 inside 1280.
|
||||
# EXIF orientation is applied, then metadata is not copied into the derivatives.
|
||||
|
||||
Reference in New Issue
Block a user