Azure Function with Timer trigger not always firing on set time. When browsing the function in Azure Portal, it suddenly fires like it "forgot to".

Karl 21 Reputation points
2021-01-26T15:43:37.337+00:00

Hi,

I have an Azure Function which is set to run 9AM every tuesday with the help of a Timer Trigger. This usually works just fine, however, today a customer reached out and said the files they were expecting had not been delivered.

So I went to check on the function in the Azure Portal, and the function decided to run immediately when I was checking the monitor logs, just like I caught it sleeping.

I have noticed similar behaviour when working with Blob triggers, after uploading an Azure Function using blob trigger to the cloud, it won't boot up or trigger as expected until I at least choose to view the function in the Portal. Afterwards it works as expected.

Anyone know how and why these issues exists and is there a way to solve them?

Thanks in advance.

EDIT: I forgot to mention, these functions are set up in consumtion plan.

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

Accepted answer
  1. JayaC-MSFT 5,606 Reputation points
    2021-01-28T11:57:08.107+00:00

    <<Posting the private comment>>

    @Karl
    Please confirm that the CRON expression used is not modified and correct which should be something like : 61531-image.png

    You can verify the expression : https://arminreiter.com/2017/02/azure-functions-time-trigger-cron-cheat-sheet/

    Also , please check runOnStartup and make sure that is set to false

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs=python#configuration

    Please let me know if this helps.

    2 people found this answer helpful.

0 additional answers

Sort by: Most 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.