TimerTrigger Function Cron is not working somethimes

Alejandra 1 Reputation point
2022-02-17T17:24:30.987+00:00

I have an Azure time TimerTrigger function
The timer is 0 */5 * * * *

175498-screenshot-2.png

But sometimes the cron doesn't work.
For example, the trigger has not been executed from Feb 16 at 16:15 to Feb 17 at 12:32

175542-screenshot-3.png

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

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,511 Reputation points
    2022-02-21T06:35:01.737+00:00

    @Alejandra ,

    Thanks for reaching out to Q&A.

    From the function invocation logs screenshot, I can see that the timer trigger didnt get invoked from 16/2/2022 16:20 to 17/2/2022 12:30. First I would suggest you to turn on "Always on" setting if the function app is running on Dedicated App service plan SKU. It is recommended that this setting should be turned on for timer triggers to work properly.

    176282-image.png

    The next thing you need to check is the Diagnose and Solve problems blade. Search for "Function app down and reporting errors" in the Diagnose and solve problems blade in the portal (you will also find it under Popular troubleshooting tools ) and select the timeframe during which the timer trigger didnt run. Multiple checks would be performed by this detector, see if there were any errors that caused the function host to go down during the period the function didnt work as expected.

    176273-image.png

    I hope this helps!

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


Your answer

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