Start celery worker throws “no attribute 'worker_state_db'”

前端 未结 4 2017
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-03 20:46

When I am trying to start celery worker in Django app as:

celery -A myApp worker -l info

I get following error:

File \"/hom         


        
4条回答
  •  伪装坚强ぢ
    2021-01-03 21:01

    I got this over and over while trying to configure celery with a dockerized django project. The solution was including env_file in docker-compose.yaml:

      celery:
        ...
        env_file: .env
    

提交回复
热议问题