question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warmup function times out frequently

See original GitHub issue

My warmup function errors about 2 times a day with error Task timed out after 120.08 seconds. The output in the logs would be

START RequestId: 123456789 Version: $LATEST
END RequestId: 123456789
REPORT RequestId: 123456789	Duration: 120083.94 ms	Billed Duration: 120000 ms Memory Size: 128 MB Max Memory Used: 61 MB	
2019-01-30T15:38:08.511Z 123456789 Task timed out after 120.08 seconds

So it doesn’t even log

2019-01-30T15:31:08.716Z	987654321	Warm Up Start

as it does on successful invocations. Any idea why this is?

The warmup function is not in a VPC (the functions it calls are, though) and frequency is 5 minutes.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:29 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
praneetrattancommented, Jul 14, 2020

That’s why I think that the ticket should be submitted to AWS. Because it seems to be an intermittent issue that happens for no apparent cause.

We have been facing the same issue. Raised a ticket with AWS with no avail. However, these timeout issues are not limited to just warming up lambdas. I have seen intermittent timeouts on normal execution lambdas too. And this started happening around feb. We had existing code in prod, and with no changes it started timing out. Of late even warm-up lambdas timeout after 10 seconds, and this happens for about 8-10 minutes, and then resumes normal function. Still waiting on AWS to respond to it…

1reaction
praneetrattancommented, Jul 29, 2020

@idhard Nope, they say they are still investigating. It seems to be a recurring problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warmup function times out frequently · Issue #117 - GitHub
My warmup function errors about 2 times a day with error Task timed out after 120.08 seconds . The output in the logs...
Read more >
How To Fix AWS Lambda Cold Start Issues
Learn how to prevent cold start in your Lambda functions with the Serverless WarmUp plugin.
Read more >
Azure Functions warmup trigger - Microsoft Learn
The warmup trigger is only called during scale-out operations, not during restarts or other non-scale startups. Make sure your logic can load ...
Read more >
Why Warming Up and Cooling Down is Important
If you start exercising at a strenuous level without warming up first, you will place unnecessary stress on your heart and lungs.
Read more >
Warm-up and cool-down - NHS inform
Warming up increases your heart rate and therefore your blood flow. This enables more oxygen to reach your muscles. A warm-up also activates...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found