A Durable Function is not consistenly triggered on its Friday schedule

Edward 1 Reputation point

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.

        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,413 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,446 Reputation points

    @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


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