Azure Function EventHub Trigger receiving request but some requests don't trigger the function

Haoran Zhang 21 Reputation points
2022-06-02T18:33:10.747+00:00

My Azure function is receiving messages from EventHub as I can see in App Insights from the request count. However, not all requests are triggering the function. One weird thing though, while I am running my tasks synchronously, each request is fulfilled. When I run the tasks in the async method and use await Task.WhenAll(), some requests are not fulfilled. When I check the App Insights through operation id or invocation id, I can only find 1 request records. Any idea about the issue?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,931 questions
{count} votes

Accepted answer
  1. Bruno Lucas 4,436 Reputation points MVP
    2022-06-06T11:22:46.147+00:00

    What version of Azure function are you using? Versions 5+ support now this setting. You could try increase the time and/or add retries and maybe reduce the delay here: Task.WaitAll(taskArray, 20000, token);

    208698-image.png


0 additional answers

Sort by: Most helpful

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.