Celery &Rabbitmq:WARNING/MainProcess] Received and deleted unknown message. Wrong destination?!?- a experiment on the GIT

后端 未结 2 1643
北恋
北恋 2020-12-18 04:13

Recently , I am doing an experiment on a GIT project to understanding the big data processing framework.

1、GIT project:https://github.com/esperdyne/celery-message-pro

2条回答
  •  借酒劲吻你
    2020-12-18 04:42

    Just so that the answer is located here as well. In the thread Anis refers to 23doors mentions that Celery 4's new default protocol does not play nice with librabbitmq:

    Apparently librabbitmq issue is related to new default protocol in celery 4.x.

    He also mentions that to resolve this issue you can make use of the older protocol Celery offers by setting (if you're using Django):

    CELERY_TASK_PROTOCOL = 1 
    

    Otherwise you can set the following in your celeryconf.py file

    app.conf.task_protocol = 1
    

    All credit to 23doors :)

提交回复
热议问题