Sometimes TimerTrigger function triggers a bit earlier

Aliaksandr Vaniuk (Contractor) 81 Reputation points
2022-01-27T16:19:45.86+00:00

I have the TimerTrigger function with the CRON 0 * * * * *, according to documentation this function should be triggered every minutes at 00 seconds, for example 7:06:00.
But occasionally it is fired a bit earlier, for example 07:05:59.

169036-image.png

Does anyone know why this happens?

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

Accepted answer
  1. Samara Soucy - MSFT 5,051 Reputation points
    2022-01-27T17:15:24.81+00:00

    Similar question here: https://learn.microsoft.com/en-us/answers/questions/46724/how-accurate-is-the-time-in-azure-functions.html

    Timer Functions aren't guaranteed to be perfect in their timing- in this particular case there appears to be a few milliseconds of drift between firing and logging. Likely if you were to check the other invocations details would show they were first a few milliseconds after the minute. You can mitigate this some by using a dedicated VM so you can control how the timer is fired, but it is unlikely that you will eliminate this completely.

    0 comments No comments

0 additional answers

Sort by: Most helpful