AWS Lambda - How to stop retries when there is a failure

前端 未结 9 1393
面向向阳花
面向向阳花 2020-12-05 06:49

I know that when a Lambda function fails (for example when there is a time out), it tries to run the function 3 more times again. Is there any way to avoid this behavior? I\

9条回答
  •  心在旅途
    2020-12-05 07:20

    If you are using Python, I recommend you to follow this thread.

    If you are using Java, inside handleRequest method add this lines:

    ClientConfiguration config = new ClientConfiguration();
    config.setMaxErrorRetry(0);
    

提交回复
热议问题