I need to figure out why an aws lambda is hanging
See original GitHub issueI can’t add the flag --expose-internals
to the call, is there any other way I can figure out what is hanging open?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top Results From Across the Web
Troubleshoot Lambda function retry and timeout issues when ...
To troubleshoot the retry and timeout issues, first review the logs of the API call to find the problem. Then, change the retry...
Read more >AWS Lambda hangs between invocations - Stack Overflow
I think the culprit is "Reserved concurrency: 1". The SQS --> Lambda part involves an invisible middle man called event source mapping which ......
Read more >codepipeline.putJobSuccessResult() Hanging when Invoking ...
The first run through should work fine. Then assign the Lambda to the VPC and subnets, then run the pipeline again and see...
Read more >Interesting story about how we solved a 'socket hang up' issue ...
Q: OK I know we have X-ray enabled, can we find more details there? ... logs for the lambda function, it looks like...
Read more >Debugging AWS Lambda Timeouts - Lumigo
Finding the root cause of the timeout ... There are many reasons why a function might time out, but the most likely is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
in my case I was using sequelize orm and I have to call
await sequelize.close()
at the end of each lambda. Settingcontext.callbackWaitsForEmptyEventLoop
tofalse
does not help in my case.@yoshuawuyts Thanks.
In case anyone comes here asking similar questions in the future, after finally digging deep enough through the docs, I found this which solved the issue for me finally:
callbackWaitsForEmptyEventLoop
For my case simply setting this to false early in my lambda allowed it to actually close without hanging when I called the callback:
Obviously closing all of your unmanaged resources properly is the ideal way to solve this issue but this is a pretty effective sledgehammer approach when that becomes tricky.