RabbitMQ reject message when processing stops with error
<p>I am using Symfony and the RabbitMQ bundle for an application and encountered the following issue: when a consumer service throws an uncaught exception/error (eg: out of memory), the message is republished and consumed again and again until it gets either a reject or ack signal. I want to change this behavior so that the message is instead discarded if any uncaught exception/error occurs the first time the message is consumed.</p>

<p>Is this possible and, if so, how? Thanks!</p>