Skip to content

Commit

Permalink
Update docker-compose.yml (#148)
Browse files Browse the repository at this point in the history
* Update docker-compose.yml

In Celery 5.0, -A or --app should come first, as a global option. Running celery worker -A results in the following output:

"You are using `-A` as an option of the worker sub-command:
celery worker -A celeryapp <...>

The support for this usage was removed in Celery 5.0. Instead you should use `-A` as a global option:
celery -A celeryapp worker <...>"

* Update docker-compose.yml
  • Loading branch information
RobbertH authored Nov 2, 2020
1 parent 28d7c7f commit 0eb3eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
build:
context: backend
dockerfile: Dockerfile
command: celery worker -A app.tasks --loglevel=DEBUG -Q main-queue -c 1
command: celery --app app.tasks worker --loglevel=DEBUG -Q main-queue -c 1

flower:
image: mher/flower
Expand Down

0 comments on commit 0eb3eac

Please sign in to comment.