Skip to content

Commit

Permalink
chore: Set heroku celery concurrency to 2 (#7485)
Browse files Browse the repository at this point in the history
To minimize memory usage
  • Loading branch information
iamareebjamal committed Dec 3, 2020
1 parent 41f2685 commit 2829fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/heroku.sh
Expand Up @@ -6,7 +6,7 @@ export INTEGRATE_SOCKETIO=false
# also socketio is not used in a celery task so no problem to turn it off
chmod -R 0777 ./static
./scripts/l10n.sh generate
celery worker -A app.instance.celery --loglevel=info &
celery worker -A app.instance.celery --loglevel=info -c 2 &
if [ "$APP_CONFIG" = "config.DevelopmentConfig" ]; then
python manage.py runserver -h 0.0.0.0 -p ${PORT:-8000} --no-reload
else
Expand Down

0 comments on commit 2829fa8

Please sign in to comment.