I am getting this error when trying to start the celery service.
I figured it would be the version of celery 5.
But I still haven't found a solution.
Thanks for listening friends.
Setting
http://docs.celeryproject.org/en/v4.0.2/userguide/configuration.html
CELERY_BROKER_URL = 'redis://:123456@redis:6379/0'
CELERY_RESULT_BACKEND = 'redis://:123456@redis:6379/0'
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TASK_SERIALIZER = 'json'
root@b9249c0a5916:/usr/src/app# celery -A sistema worker -l info
Usage: celery worker [OPTIONS]
Try 'celery worker --help' for help.
Error: Invalid value for '-l' / '--loglevel': invalid choice: info. (choose from DEBUG, INFO, WARNING, ERROR, CRITICAL, FATAL)
root@b9249c0a5916:/usr/src/app#
The error seems explicit:
Error: Invalid value for '-l' / '--loglevel': invalid choice: info. (choose from DEBUG, INFO, WARNING, ERROR, CRITICAL, FATAL)
Doesn't this work?
root@b9249c0a5916:/usr/src/app# celery -A sistema worker -l INFO
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.