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:
parent
1db400be6f
commit
6c04faf97b
1 changed files with 1 additions and 8 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue