A Durable Function is not consistenly triggered on its Friday schedule

Edward 1 Reputation point
2022-09-22T01:40:46.09+00:00

I encountered strange behavior in the Production this past few weeks where my durable function is not triggered on a specific day.
I have this timer trigger Durable function, please see the code below.

        [FunctionName("PaymentProcessTimerTrigger")]  
        public async Task RunPaymentProcess(  
            [TimerTrigger("0 0 22 * * 1-5")] TimerInfo myTimer,  
            [DurableClient] IDurableOrchestrationClient starter, ILogger log)  
        {  
            log.LogInformation($"PaymentProcessOrchestrator executed at: {DateTime.UtcNow.ToShortDateString()}");  
            await starter.StartNewAsync"PaymentOrchestrator", null);  
        }  

With the cron expression, I expect that this will be triggered every 10 pm from Monday - Friday. But it seems that it was only triggered every Monday-Thursday.
Please let me know if there is anything that I need to adjust with my implementation. Thanks in advance.

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

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,421 Reputation points
    2022-09-28T05:34:28.133+00:00

    @Edward ,

    Thanks for reaching out to Q&A.

    If the app is running on App service plan SKU, please make sure "always on" is turned on in the configuration-> General settings

    https://learn.microsoft.com/en-us/answers/questions/882002/azure-timer-function-not-firing-automatically.html?childToView=882560#answer-882560

    Feel free to reach out to me if you have any questions.