-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Random timeout while invoking long running lambda #2558
Comments
Hey @coxom, I suspect this has something to do with the keep-alive settings. The connection might be shut down by intermediate proxies within CodeBuild or Lambda. Can you try enabling socket keep-alive to see whether that mitigate the issue. See: https://nodejs.org/api/net.html#net_socket_setkeepalive_enable_initialdelay |
@AllanFly120 thank you for the help. I have added the keepAlive through the agent property in httpOptions like suggested here: Will give feedback if it gets solved. |
Great @coxom |
Hi, Unfortunately this hasn't solved the issue. We continue to have random timeouts. |
@coxom Did you manage to find a solution to your problem? We have a similar problem and we're struggling to find a solution. |
Unfortunately no. We just moved to use a ECS container to run the long running code. |
Hey @alexandrusavin @coxom is this still a persisting issue with the latest version of the SDK? |
@ajredniwja We are using an ECS container now and haven't got any code that invokes a long running lambda anymore. Was there a change in the latest version of the sdk that would help this scenario? |
@coxom I am not sure if there were changes regarding to this particular scenario, but some logics or features may be added, you can have a look at change log. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Hi,
We are having this random timeout problem in our amazon CodeBuild that runs a node script that in turn uses aws-sdk (2.344.0) to invoke a lambda that takes ~6min.
Our CodeBuild will randomly timeout after an hour despite the lambda having a log saying it ran successfully:
A few days ago we adjusted the httpOptions timeout to 60000ms.
Today for the first time we actually got an output:
On the lambda side we have it logging that it completed the call in less than 10mins:
Seems like it retried 4 times and every time it timed-out?
Any tips on where we can look to debug this issue? Seems like it it between the aws-sdk and the lambda.
The text was updated successfully, but these errors were encountered: