Azure Function app with timer trigger suddenly stopped firing

Lee Spottiswood 0 Reputation points
2023-09-04T11:11:14.4833333+00:00

I have a function with a timer trigger configured with following:

            "bindings": [
                {
                    "name": "Timer",
                    "type": "timerTrigger",
                    "direction": "in",
                    "schedule": "0 1 * * 1"
                }
            ]

This has been triggering every 7 days without issue, however suddenly stopped after the last invocation on 14th August:

User's image

After clicking around the the Azure portal to check for any errors, I've noticed this has just fired without any intervention:

User's image

It's as though this function has just been frozen. Any ideas? I'm concerned this is going to happen again, without absolutely no indication as to the cause

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

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 26,151 Reputation points
    2023-09-04T12:19:43.4766667+00:00

    Hi Lee Spottiswood thanks for reaching out. From the description i understand that you have a timer trigger that is set to trigger at 1AM only on every Monday's but it suddenly stopped on 14th aug and it got triggered again when you open azure portal.

    Is your function app running in consumption or APP service plan? If it's in an App Service Plan, you need to make sure that Always On is enabled. It is enabled by default on Function Apps, but it's good to double check.

    If it is on consumption plan please verify the steps mentioned in below document.

    https://github.com/Azure/azure-functions-host/wiki/Investigating-and-reporting-issues-with-timer-triggered-functions-not-firing#is-your-function-app-running-in-consumption-mode-or-in-an-app-service-plan

    https://github.com/Azure/azure-webjobs-sdk-extensions/wiki/TimerTrigger#troubleshooting

    You can also run the Diagnose and solve problems on your function app and search for "Timer Trigger Issue Analysis" to get the insights and recommendation.

    please let me know incase of further questions.

    1 person found this answer 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.