Skip to content
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

Warmer event randomly not detected in lambda #10

Open
robinth91 opened this issue Jun 12, 2019 · 1 comment
Open

Warmer event randomly not detected in lambda #10

robinth91 opened this issue Jun 12, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@robinth91
Copy link

robinth91 commented Jun 12, 2019

One of our lambdas randomly doesn't detect the event as a warmer event and proceed further which breaks our code (it happens 2-5 times a day).

Our code looks like below:

module.exports.execute = async (event, context, callback) => {
  // Warming up the lambda.
  if (await warmer(event)) {
    console.log('Warming up the lambda');
    return;
  }

  // Other code
}

We use serverless to schedule the warmer.

- schedule:
    name: ${self:service}-${self:provider.region}-${self:provider.stage}-warmer-lambda
    rate: rate(5 minutes)
    enabled: ${self:custom.warmup.enabled.${self:custom.config.environment}}
    input:
      warmer: true
      concurrency: 3

Using atleast v3.5.0 of thelambda-warmer.
node version 8.10.0

@tanoabeleyra
Copy link

tanoabeleyra commented Aug 7, 2020

The same started happening to me. Also, even if I scheduled the warmer to run every 5 minutes, it started triggering the Lambda every minute.

Given that I didn't need the concurrency feature, I just uninstalled this library and modified the condition to check event.warm.

@naorpeled naorpeled added the bug Something isn't working label Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants