aws lambda function triggering multiple times for a single event

前端 未结 4 1209
北恋
北恋 2020-12-13 18:19

I am using aws lambda function to convert uploaded wav file in a bucket to mp3 format and later move file to another bucket. It is working correctly. But there\'s a problem

4条回答
  •  粉色の甜心
    2020-12-13 19:07

    Any event Executing Lambda several times is due to retry behavior of Lambda as specified in AWS document.

    Your code might raise an exception, time out, or run out of memory. The runtime executing your code might encounter an error and stop. You might run out concurrency and be throttled.

    There could be some error in Lambda which makes the client or service invoking the Lambda function to retry.

    Use CloudWatch logs to find the error and resolving it could resolve the problem.

    I too faced the same problem, in my case it's because of application error, resolving it helped me.

    Recently AWS Lambda has new property to change the default Retry nature. Set the Retry attempts to 0 (default 2) under Asynchronous invocation settings.

提交回复
热议问题