Reputation: 109
we have webhook subscription for blob create events to Azure function (eventgrid trigger), we noticed same event are received multiple time after random time interval. tried debugging locally using ngrok same behavior
What could be possible problems in this scenario
Thank you! Dyan
Upvotes: 0
Views: 1169
Reputation: 11113
In Event trigger if the message from end point is not received or any error occurred while triggering the event, Then it is triggered after some interval of time, so while creating the Event Trigger to function app you need to set the retry policy to 1 so that only once the event is triggered, this process worked for me, it might work for you too.
Thanks to @Roman Kiss ,After sending a message, Event Grid waits 30 seconds for a response. If the endpoint has not answered after 30 seconds, the message is queued for retry. For event delivery, Event Grid employs an exponential backoff retry mechanism.
So try setting it 1 as above.
References taken from:
Upvotes: 1