full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

Celery worker not starting

Open bechtold opened this issue 3 years ago • 0 comments

The docker container for the celery worker is not starting. This is the log:

INFO:__main__:Initializing service

INFO:__main__:Starting call to '__main__.init', this is the 1st time calling it.

INFO:__main__:Service finished initializing

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 <...>

Usage: celery worker [OPTIONS]

Try 'celery worker --help' for help.


Error: No such option: -A

bechtold avatar Dec 24 '21 14:12 bechtold