Giter VIP home page Giter VIP logo

Comments (5)

sison-yuan avatar sison-yuan commented on May 18, 2024

经过今天测试,发现问题出在librabbitmq这个库上面,pip卸载掉这个库就可以运行了,但作者书上写务必使用这个C写的库,求解是否有解决方法?

from web_develop.

dongweiming avatar dongweiming commented on May 18, 2024

@escblack 我写书时各个软件的版本正常的,但是不能保证半年后的现在不会做什么不兼容的修改。 我搜了下 https://github.com/celery/celery/search?q=Received+and+deleted+unknown+message&type=Issues&utf8=%E2%9C%93 还挺多的,你可以参考下

from web_develop.

dongweiming avatar dongweiming commented on May 18, 2024

代码是消息的格式有问题,没有task这个头信息。

from web_develop.

maxbitcoin avatar maxbitcoin commented on May 18, 2024

这里有解决办法-> celery/celery#3689

方法一:
配置文件celeryconfig.py加上这一行
CELERY_TASK_PROTOCOL = 1

方法二:
app = Celery()
app.conf.task_protocol = 1

董大写书时用的是celery v3.1.18,现在celery升级到了4.0,应该是老版本的librabbitmq与最新的celery4.0 Message Protocol协议不兼容造成的(点这里) ,celery4.0默认使用Task messages Version 2 ,而librabbitmq使用Task messages Version 1

from web_develop.

dongweiming avatar dongweiming commented on May 18, 2024

@maxbitcoin 感谢 书的下一版我加上这部分说明

from web_develop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.