Blob Trigger not working or after hours

Thomas BRETON 1 Reputation point
2022-12-13T09:50:38.487+00:00

I got a function app with a blob trigger but the behaviour makes no sense.

When a file is uploaded,

  • it is working well if I have just restarted the app
    OR
  • it is working after hours (sometimes 15h)
    OR
  • it is not working at all

Can someone let me know what to do ?

I am using dotnet runtime 4.

Thomas

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
{count} votes

2 answers

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-12-15T09:04:58.803+00:00

    @Thomas BRETON Thanks for reaching out and apology for the inconvenience due to this issue. It looks like you are running your function under the consumption plan. This is the expected behavior if your function app is on the Consumption plan, there can be up to a 10-minute delay in processing new blobs if a function app has gone idle and the same is documented here. In case if you observe more delay then this needs to further troubleshoot if your function app is getting started again or not. I will suggest you to open a support plan to troubleshoot this issue further. If you don't have the support plan then please let me know.

    The suggestion would be leveraging the event grid trigger instead of storage trigger and configure event grid with your storage events as documented in polling and latency section.
    To know more about clod start you can refer to this document.


  2. Paul-Louis Pröve 20 Reputation points
    2023-10-17T12:14:41.3866667+00:00

    I have exactly the same problem and your workaround also does it for me. I have to question the point of a blob trigger if the runtime has to be active in order to trigger the function.


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.