Stin
Stin

Reputation: 191

How to set retry timeout for AWS Lambda

We are using recently released feature from AWS Lambda and SQS integration. Whenever there is a message in SQS, Lambda is triggered and process the message.

However, In case of Lambda failure, it retires to process the message again.

Is there a way to configure interval between retries?

Upvotes: 3

Views: 3480

Answers (1)

Ronyis
Ronyis

Reputation: 1953

The answer to your question is no, but to overcome this problem you can put your Lambda inside a state machine (using AWS Step Functions), and using the machine's configuration you can control the retires behavior and even disable retries if you want.

This blog post I've written gives a more general explanation.

Upvotes: 1

Related Questions