Celery Received unregistered task of type (run example)

后端 未结 30 1862
旧时难觅i
旧时难觅i 2020-11-28 04:42

I\'m trying to run example from Celery documentation.

I run: celeryd --loglevel=INFO

/usr/local/lib/python2.7/dist-packages/celery/loade         


        
30条回答
  •  囚心锁ツ
    2020-11-28 04:59

    app = Celery('proj',
                 broker='amqp://',
                 backend='amqp://',
                 include=['proj.tasks'])
    

    please include=['proj.tasks'] You need go to the top dir, then exec this

    celery -A app.celery_module.celeryapp worker --loglevel=info
    

    not

    celery -A celeryapp worker --loglevel=info
    

    in your celeryconfig.py input imports = ("path.ptah.tasks",)

    please in other module invoke task!!!!!!!!

提交回复
热议问题