I have a lambda function which can time out sometimes depending on the payload. And in case of a timeout, I don't want my function to get retried. For that reason, I have set max retry attempts to 0. But somehow I can see timed-out functions getting retried.
Any idea how to stop the retrying?
The retries are happening every 30 minutes and the lambda costs have shot up because of this.
If you are using Python SDK to trigger these lambdas then it might be the SDK that is performing the retry rather than AWS.
See this page https://aws.amazon.com/premiumsupport/knowledge-center/lambda-function-retry-timeout-sdk/
The SDK could be set to retry the function if it hasn't received as response due to a timeout
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.