chore: make docker-compose use less memory (#28773)

Co-authored-by: Evan Rusackas <evan@preset.io>
This commit is contained in:
Maxime Beauchemin
2024-05-30 11:42:03 -07:00
committed by GitHub
parent 0070097af8
commit 2dbb44b725
2 changed files with 7 additions and 1 deletions

View File

@@ -38,7 +38,8 @@ fi
case "${1}" in
worker)
echo "Starting Celery worker..."
celery --app=superset.tasks.celery_app:app worker -O fair -l INFO
# setting up only 2 workers by default to contain memory usage in dev environments
celery --app=superset.tasks.celery_app:app worker -O fair -l INFO --concurrency=${CELERYD_CONCURRENCY:-2}
;;
beat)
echo "Starting Celery beat..."