Skip to content

Commit 53f4c2a

Browse files
chore: Upgrade commands to celelry v5 (#7489)
1 parent f004a38 commit 53f4c2a

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Diff for: docs/installation/basic.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ python3 manage.py db stamp head
7474
export 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 &
7878
unset INTEGRATE_SOCKETIO
7979

8080
# run app

Diff for: docs/installation/local.md

+1-1
Original file line numberDiff line numberDiff 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
166166
python3 manage.py runserver

Diff for: docs/installation/mac-os.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ redis-3.2.1/src/redis-server &
9898
export 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 &
102102
unset INTEGRATE_SOCKETIO
103103

104104
# run app

Diff for: kubernetes/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ if [ "$DEPLOYMENT" == "celery" ]
1515
then
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
1919
fi

Diff for: scripts/container_start.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ then
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
2929
fi

Diff for: scripts/heroku.sh

+1-1
Original file line numberDiff line numberDiff 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
77
chmod -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 &
1010
if [ "$APP_CONFIG" = "config.DevelopmentConfig" ]; then
1111
python manage.py runserver -h 0.0.0.0 -p ${PORT:-8000} --no-reload
1212
else

0 commit comments

Comments
 (0)