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

질문됨 2년 전270회 조회
1개 답변
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
답변함 2년 전
  • 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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠