Not allowing eventbridge/lambda to rerun the events which timed out

39 views Asked by At

I am using eventbridge to deliver events to my lambda. My lambda store the data associated with the event into the database. I also have one Eventbridge schedule which keep triggering this events every 15 mins.

Now issue is happening that suppose my lambda got event for Event A and it timeout due to too much data to process so it is trying to run it again. At the same time, my 15 min scheduler is trying to process the same event again as its still not completed.

I know there is a way that disable the retry but i dont to disable all the retry like in case of the target (lambda) not available or some other issues. I just want to target the rerun on the timeout. Though i can maintain state for the event bt my only worry is that if the lambda crashes or timeout before i try to change the state then my event will be left in invalid state.

Is there a way that i can disable reruning the lambda on timeout on the event?

0

There are 0 answers