Celery with RabbitMQ: AttributeError: 'DisabledBackend' object has no attribute '_get_task_meta_for'

前端 未结 5 694
Happy的楠姐
Happy的楠姐 2020-12-08 18:13

I\'m running the First Steps with Celery Tutorial.

We define the following task:

from celery import Celery

app = Celery(\'tasks\', broker=\'amqp://g         


        
5条回答
  •  爱一瞬间的悲伤
    2020-12-08 18:46

    I suggest having a look at: http://www.cnblogs.com/fangwenyu/p/3625830.html

    There you will see that instead of

    app = Celery('tasks', broker='amqp://guest@localhost//')
    

    you should be writing

    app = Celery('tasks', backend='amqp', broker='amqp://guest@localhost//')
    

    This is it.

提交回复
热议问题