File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ python3 manage.py db stamp head
7474export INTEGRATE_SOCKETIO=false
7575# socketio has problems with celery "blocking" tasks
7676# also socketio is not used in a celery task so no problem to turn it off
77- celery worker -A app.instance.celery &
77+ celery -A app.instance.celery worker -B -l INFO -c 2 &
7878unset INTEGRATE_SOCKETIO
7979
8080# run app
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ brew services start redis
160160# Run Celery
161161# socketio has problems with celery "blocking" tasks
162162# also socketio is not used in a celery task so no problem to turn it off
163- INTEGRATE_SOCKETIO=false celery worker -A app.instance.celery
163+ INTEGRATE_SOCKETIO=false celery -A app.instance.celery worker -B -l INFO -c 2
164164
165165# run app
166166python3 manage.py runserver
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ redis-3.2.1/src/redis-server &
9898export INTEGRATE_SOCKETIO=false
9999# socketio has problems with celery "blocking" tasks
100100# also socketio is not used in a celery task so no problem to turn it off
101- celery worker -A app.instance.celery &
101+ celery -A app.instance.celery worker -B -l INFO -c 2 &
102102unset INTEGRATE_SOCKETIO
103103
104104# run app
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ if [ "$DEPLOYMENT" == "celery" ]
1515then
1616 echo " [LOG] Starting celery worker"
1717 export INTEGRATE_SOCKETIO=false
18- celery worker -A app.instance.celery --loglevel=warning
18+ celery -A app.instance.celery worker -B --loglevel=warning
1919fi
Original file line number Diff line number Diff line change 2525 echo " [LOG] Starting celery worker"
2626 export INTEGRATE_SOCKETIO=false
2727 export CELERY_LOG_LEVEL=${CELERY_LOG_LEVEL:- info}
28- celery worker -B - A app.instance.celery --loglevel=$CELERY_LOG_LEVEL $CELERY_EXTRA_ARGS
28+ celery - A app.instance.celery worker -B --loglevel=$CELERY_LOG_LEVEL $CELERY_EXTRA_ARGS
2929fi
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export INTEGRATE_SOCKETIO=false
66# also socketio is not used in a celery task so no problem to turn it off
77chmod -R 0777 ./static
88./scripts/l10n.sh generate
9- celery worker -A app.instance.celery --loglevel=info -c 2 &
9+ celery -A app.instance.celery worker --loglevel=info -c 2 &
1010if [ " $APP_CONFIG " = " config.DevelopmentConfig" ]; then
1111 python manage.py runserver -h 0.0.0.0 -p ${PORT:- 8000} --no-reload
1212else
You can’t perform that action at this time.
0 commit comments