Azure Function running multiple times - Service Bus Trigger

Singh, Rahul 16 Reputation points
2022-08-10T18:52:36.647+00:00

I am facing some weird issue with Azure function and service bus trigger. Setup: I have 1 service bus queue (with session enabled) which has max. delivery count of 1 as shown below:- ![229990-image.png][1] I have an Azure function which gets triggered by a message in service bus queue. The function is combining multiple excel files into 1. But when I run a large number of files, the function seems to br running multiple times as shown in the logs:- ![230083-image.png][2] Earlier I thought that the message lock is getting released but I have already set the maxAutoRenewDuration to 1 hour (The function is using Premium plan). So I tested by simply adding a delay of 12 minutes and it's working as expected:- ![230102-image.png][3] Could you let me know why it's happening? Is the function crashing due to memory or something, if yes, why I am not getting any error message? [1]: /api/attachments/229990-image.png?platform=QnA [2]: /api/attachments/230083-image.png?platform=QnA [3]: /api/attachments/230102-image.png?platform=QnA

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
700 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.