File tree 6 files changed +6
-6
lines changed
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
74
74
export INTEGRATE_SOCKETIO=false
75
75
# socketio has problems with celery "blocking" tasks
76
76
# 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 &
78
78
unset INTEGRATE_SOCKETIO
79
79
80
80
# run app
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ brew services start redis
160
160
# Run Celery
161
161
# socketio has problems with celery "blocking" tasks
162
162
# 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
164
164
165
165
# run app
166
166
python3 manage.py runserver
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ redis-3.2.1/src/redis-server &
98
98
export INTEGRATE_SOCKETIO=false
99
99
# socketio has problems with celery "blocking" tasks
100
100
# 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 &
102
102
unset INTEGRATE_SOCKETIO
103
103
104
104
# run app
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ if [ "$DEPLOYMENT" == "celery" ]
15
15
then
16
16
echo " [LOG] Starting celery worker"
17
17
export INTEGRATE_SOCKETIO=false
18
- celery worker -A app.instance.celery --loglevel=warning
18
+ celery -A app.instance.celery worker -B --loglevel=warning
19
19
fi
Original file line number Diff line number Diff line change 25
25
echo " [LOG] Starting celery worker"
26
26
export INTEGRATE_SOCKETIO=false
27
27
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
29
29
fi
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export INTEGRATE_SOCKETIO=false
6
6
# also socketio is not used in a celery task so no problem to turn it off
7
7
chmod -R 0777 ./static
8
8
./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 &
10
10
if [ " $APP_CONFIG " = " config.DevelopmentConfig" ]; then
11
11
python manage.py runserver -h 0.0.0.0 -p ${PORT:- 8000} --no-reload
12
12
else
You can’t perform that action at this time.
0 commit comments