Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I increase the execution time of aws lambda function more than 5 min?

I have lambda function that take more than 5 min to run. How can I increase the execution time of lambda function more than 5 min so my program can keep going?

END RequestId: 5b676871-1eef-1xex-bxxa-47xxxxad8d63

The last line show this in cloudwatch. It automatically end the request.

like image 669
Abhishek gajjar Avatar asked Apr 12 '17 05:04

Abhishek gajjar


2 Answers

You cannot increase the runtime to more than 15 minutes.

The AWS Lambda limit page states the Function timeout is 900 seconds (15 minutes). If you need more than 15 minutes of execution time you have to look at other services. You could have a look if AWS Batch would suit your needs.

Updated: The limit was changed from 5 minutes to 15 minutes.

like image 56
Udo Held Avatar answered Oct 09 '22 03:10

Udo Held


Now you can run AWS Lambda up to 15 minutes!

https://aws.amazon.com/about-aws/whats-new/2018/10/aws-lambda-supports-functions-that-can-run-up-to-15-minutes/

like image 23
ExploringApple Avatar answered Oct 09 '22 03:10

ExploringApple