From 0eb3eac9f794965083436380ea9facb2e9215139 Mon Sep 17 00:00:00 2001 From: Robbert Date: Mon, 2 Nov 2020 18:43:08 +0100 Subject: [PATCH] Update docker-compose.yml (#148) * 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 --- {{cookiecutter.project_slug}}/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/docker-compose.yml b/{{cookiecutter.project_slug}}/docker-compose.yml index 4d80bb1e..027965d7 100644 --- a/{{cookiecutter.project_slug}}/docker-compose.yml +++ b/{{cookiecutter.project_slug}}/docker-compose.yml @@ -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