Azure Functions not run immediately after trigger

Umer 1 Reputation point
2021-08-27T16:25:59.137+00:00

Hello. We have some Azure functions that run every 15 minutes. Usually these tests run fine and take about a minute to run. Occasionally we see all of our tests take 15+ minutes to run. When drilling into the telemetry, the logs show that the timer is fired, and it takes 15 minutes for the actual function to begin. This is an issue because it makes it seem like the server response time is high - the entire test takes around 16 minutes, when in reality it was only a minute.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,679 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,016 Reputation points
    2021-08-30T06:48:15.467+00:00

    @Umer The reason could be cold start on your function app when you are running it under the consumption SKU. For more details you can refer to this document. Can you confirm if you observe the same behaviour with dedicated plan. There is no specific time when the resources are deallocated but it is roughly 20 minutes of inactivity but does not gurantee.

    0 comments No comments