Skip to content

Commit

Permalink
Examples: Set the app using environment istead of commandline
Browse files Browse the repository at this point in the history
The command line processing is broken in Celery 4.4.7 release, see
celery/celery#6285

Fixes #4445
  • Loading branch information
nijel committed Sep 5, 2020
1 parent 2857e6b commit eb419be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion weblate/examples/celery
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

# Simple wrapper to start/stop celery workers

python -m celery -A weblate.utils multi $1 \
# Set the app using environment istead of commandline as that got broken
# in the 4.4.7 release, see
# https://github.com/celery/celery/issues/6285
export CELERY_APP=weblate.utils

python -m celery multi $1 \
notify celery backup translate \
--pidfile=$PWD/weblate-%n.pid \
--logfile=$PWD/weblate-%n%I.log --loglevel=DEBUG \
Expand Down

0 comments on commit eb419be

Please sign in to comment.