Change SQS Message Visibility action with a timeout of 10 minutes.
You can continue to call the Change SQS Message Visibility action to extend the visibility timeout to the maximum allowed time.
If you try to extend the visibility timeout beyond the maximum, your request is rejected.
An Amazon SQS message has three basic states:
- Sent to a queue by a producer.
- Received from the queue by a consumer.
- Deleted from the queue.
OverLimit error message.
To avoid reaching the limit, you should delete messages from the queue after they”re processed.
You can also increase the number of queues you use to process your messages.
To request a limit increase, file a support request.
For FIFO queues, there can be a maximum of 20,000 inflight messages (received from a queue by a consumer, but not yet deleted from the queue).
If you reach this limit, Amazon SQS returns no error messages.
If you attempt to set the
VisibilityTimeout to a value greater than the maximum time left, Amazon SQS returns an error.
Amazon SQS doesn’t automatically recalculate and increase the timeout to the maximum remaining time.Unlike with a queue, when you change the visibility timeout for a specific message the timeout value is applied immediately but isn’t saved in memory for that message.
If you don”t delete a message after it is received, the visibility timeout for the message reverts to the original timeout value (not to the value you set using the Change SQS Message Visibility action) the next time the message is received.External DocumentationTo learn more, visit the AWS documentation.