Azure Timer Function Not Firing Automatically

Demitra Del Fiacco 21 Reputation points
2022-06-08T17:06:07.297+00:00

I have a function app on an app service plan (S1 tier). In this function app I have a singular timer function. However, the function is not firing automatically based on the CRON expression I have provided. I am able to run the function manually, but it will not fire by itself.

Here is my function.json:
{
"bindings": [
{
"name": "myTimer",
"type": "timerTrigger",
"direction": "in",
"schedule": "0 50 11 * * WED"
}
]
}

Can someone please let me know if there is anything I am missing to make this function run automatically?

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

Accepted answer
  1. MughundhanRaveendran-MSFT 12,431 Reputation points
    2022-06-09T06:22:25.737+00:00

    Hi @Demitra Del Fiacco ,

    Please make sure the "Always on" setting is turned on under the configuration settings.

    This setting would keep the app active even when there's no traffic. It's required for continuous WebJobs or for functions that are triggered using a CRON expression.

    https://learn.microsoft.com/en-us/azure/app-service/configure-common

    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

    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.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Jaliya Udagedara 2,731 Reputation points MVP
    2022-06-08T19:41:59.987+00:00

    It doesn't look like your CRON expression is correct (at least 5 parts are required). What's your requirement on the CRON expression?

    0 comments No comments

  2. FrederikL 1 Reputation point
    2022-11-28T14:30:04.863+00:00

    My cron definition is 0 star star star star star, so every minute. But the stars are rendered incorrectly on this webpage.

    0 comments No comments