首页 > 解决方案 > How to turn off retries in aio-pika

问题描述

I'm using aio-pika and noticed when running my worker is getting a broken pipe followed by retries.

When I turned

await queue.consume(on_message, no_ack=True)

the retries stopped but now my admin panel always show 0 for ready, unacked and total.

enter image description here

First question, is there a way to turn off retries, but still have acks show in the admin panel so it is easier to see what is going on?

I'm only in development now, and running with a debugger, and suspect that is why my retries are occurring. Has anyone else experienced this?

Any feedback is appreciated.

标签: rabbitmqpika

解决方案


推荐阅读