Recurring Lambda Scheduler

0

Recurring Lambda scheduler is added to lambda "PBZTriggerSMSCampCron-kbeeprd",which runs every 1 minute,but in a same minute it was triggered twice which caused a huge error and inconsistencies in Production.Can anyone please help why it was triggered twice in a same minute.The Request Id are
1.RequestId: afda9bf6-c885-477f-aaf8-631381e4a676 2.RequestId: acf72f6b-5928-4fff-84c6-dfce4de89b4a They where triggered at 18:16:23 and 18:16:44 respectively Can anyone please help why this occured.This Caused huge issue in Production

gefragt vor 2 Jahren270 Aufrufe
1 Antwort
2

Hi, I don't have access to your account and can neither see your resources nor the event records.

How are you triggering the "recurring Lambda scheduler". Is this via Amplify or EventBridge (CloudWatch Events) or something else?

I would check the following:

  • Any other possible triggers of the lambda itself.
  • Are there any errors on the lambda running? If so, it's possible that the retry functionality could have kicked off another run of the lambda.
  • What does the timeout look for your lambda function?
  • Lastly, I would check the idempotency of the function. This guide may be helpful: https://aws.amazon.com/premiumsupport/knowledge-center/lambda-function-idempotent/
jsonc
beantwortet vor 2 Jahren
  • The Lambda is triggered via Amplify. No triggers are present for lambda except the Recurring Scheduler The timeout of lambda function is 15 minutes. There are no errors ,while trigger-1 was runnings till ,then another trigger was triggered

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen