mosquito / aio-pika

AMQP 0.9 client designed for asyncio and humans.
https://aio-pika.readthedocs.org/
Apache License 2.0
1.18k stars 186 forks source link

The message cannot be put back into the queue #475

Open zhenzi0322 opened 1 year ago

zhenzi0322 commented 1 year ago

Example:

...
async with message.process(requeue=True, ignore_processed=True):
    a = 1 / 0

Do I put the message back into the queue when I try an exception

mosquito commented 1 year ago

according to this code, the message will return to the queue.