Simplify Celery command formatting in docker-compose.yml

Consolidate the Celery worker command into a single line for improved readability and maintainability. This change reduces unnecessary line breaks without altering functionality.
This commit is contained in:
Egor Pavlovich Gorbunov 2025-05-07 04:12:35 +03:00
parent 1db400be6f
commit 6c04faf97b

View file

@ -45,14 +45,7 @@ services:
build: . build: .
restart: always restart: always
command: > command: >
sh -c "poetry run celery -A evibes worker \ sh -c "poetry run celery -A evibes worker --loglevel=info --concurrency=4 --autoscale=4,2 --max-tasks-per-child=100 --max-memory-per-child=512000 --soft-time-limit=7200 --time-limit=10800"
--loglevel=info \
--concurrency=4 \
--autoscale=4,2 \
--max-tasks-per-child=100 \
--max-memory-per-child=512000 \
--soft-time-limit=7200 \
--time-limit=10800"
volumes: volumes:
- .:/app - .:/app
env_file: env_file: