Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase lambda client read timeout to 15 minutes (#1065)
As of 2018, Lambda functions [can be configured][1] to run for up to 15 minutes per execution, but the configuration for the Zappa CLI's Lambda client had its timeout set to 5 minutes. This meant that the Lambda client would time out waiting for a response from a long-running invocation (e.g. a Django management command that runs for more than 5 minutes) while the actual function could continue to execute for up to 15 minutes, depending on its configuration. I believe the comment in the README regarding the 30-second API gateway timeout's effect on long-running management command invocations is incorrect or misleading. Django management commands invoked via `zappa manage` execute the Lambda function directly using a boto3 Lambda client (in the `Zappa.invoke_lambda_function` method), so the API Gateway timeout should not affect these invocations at all. [1]: https://aws.amazon.com/about-aws/whats-new/2018/10/aws-lambda-supports-functions-that-can-run-up-to-15-minutes
- Loading branch information