I have a queue with one "heavy" message being sent/receive occasionally.
The configured visibility timeout is currently at the maximum of 12 hours.
However, I identified the message got stuck on the consumer, and I want to return it to the queue for a retry (so it will be consumed again by another consumer).
Does reducing the visibility timeout (temporarily) affect message already in-flight?
Is there any other way to force making the message visible?
If you have the ReceiptHandle for a message, you can call change_message_visibility().
The Receipt Handle refers to the specific 'fetch' of the message, rather than the message itself. The ReceiptHandle value is provided in response to the ReceiveMessage() command, so it is only available to the code that actually retrieved the message from the queue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With