I tried to delete fifo queue message however my visibility timeout is 12 hours. But still i am unable to delete message after polling time. I have searched alot but didn't get any usfull way to delete the message. Can please someone help me in it.Queue configuration screenshot, Message Receiver screenshot, Error screenshot
Asked
Active
Viewed 332 times
0
-
Could you please clarify what you have experienced? Did you try to delete the message _after_ the visibility period expired, or _before_ it expired? Can you show us your code? – John Rotenstein Sep 23 '22 at 07:07
-
First of all thanks for the quick response. I am using AWS console for this purpose and i am trying to delete the message after polling duration is completed. If i try to delete the message within polling duration. It works fine. – Assis Wasiq Sep 23 '22 at 10:09
-
Image is already added to the Post – Assis Wasiq Sep 23 '22 at 10:14
1 Answers
0
When the Amazon SQS console is used to view the contents of an SQS queue, it is calling the same ReceiveMessage()
API call as a normal app would call. This triggers message invisibility and increments the 'Receive Count' that is used to send messages to the Dead Letter Queue.
When ReceiveMessage()
is called, a different visibility timeout can be specified. I suspect that the console is using a low visibility timeout so that it does not prevent queue consumers from being able to access the messages. Thus, when the polling is finished, the invisibility period has probably expired.
If this behaviour is not acceptable for your situation, you could write your own 'message viewer' that specifies a longer invisibility timeout.

John Rotenstein
- 241,921
- 22
- 380
- 470