Aws Lambda Invoke Function Doesn't Always Return
I am running an AWS Lambda function for image/video processing with Node 4.3 as a runtime. I am invoking my function from my webapp code with the node aws-sdk. The issue is that w
Solution 1:
as stated within the comments, the aws sdk has its own timeout config setting, that is by default set to 120 seconds (this is a different timeout setting than the lambda one).
in the current case, as the lambda runs for more this timeout, the sdk is assuming a failure and firing retries.
setting this config to 300 seconds should solve the problem. As Daniel T showed in the comment, temporary changing this can be achieved this way: var lambda = new AWS.Lambda({httpOptions{timeout: 300000}});
Post a Comment for "Aws Lambda Invoke Function Doesn't Always Return"