消费来自rabbitmq的消息,但消费者似乎接受然后拒绝接受然后拒绝(以相同的格式)接受一个然后拒绝下一个消息
[MainProcess] Received message: RT @Iamsidneyy: Kenya in scientific terms [WARNING/MainProcess] Received and deleted unknown message. Wrong destination?!? The full contents of the message body was: body: 'The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge.\n\n—Stephen Hawking' (133b) {content_type:'application/json' content_encoding:'utf-8' delivery_info:{'consumer_tag': 'None5', 'delivery_tag': 1, 'redelivered': False, 'exchange': 'twitterstatus', 'routing_key': 'twitterstatus'} headers={}} [MainProcess] Received message: RT @fideloper: Coming together! [WARNING/MainProcess] Received and deleted unknown message. Wrong destination?!? The full contents of the message body was: body: 'Lol all of mine are memes :’)' (60b) {content_type:'application/json' content_encoding:'utf-8' delivery_info:{'consumer_tag': 'None5', 'delivery_tag': 2, 'redelivered': False, 'exchange': 'twitterstatus', 'routing_key': 'twitterstatus'} headers={}}
答案 0 :(得分:0)
正在使用
celery worker -A app -Q twitterstatus -l info
似乎正在使用队列选项现在使用
celery worker -A app -l info
工作正常