Azure function not executing on scheduled time for IST time zone

Rahul Mirajgave 1 Reputation point
2021-08-17T06:29:04.63+00:00

I have set function to execute between 8 AM to 6 PM daily (IST). But it is executing at 11AM. CRON expression "0 0 8-18 * * *"

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

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2021-08-17T06:47:02.61+00:00

    @Rahul Mirajgave NCRONTAB expression supports both five field and six field format. Looks like you have might have missed one while posting your query.

    0 0 8-18 * *  
    

    The default time zone used with the CRON expressions is Coordinated Universal Time (UTC). To have your CRON expression based on another time zone, create an app setting for your function app named WEBSITE_TIME_ZONE as mentioned in this document. I will suggest you to verify if you have define WEBSITE_TIME_ZONE to adjusted for time changes in the specific timezone, including daylight saving time and changes in standard time.

    If you have already set the WEBSITE_TIME_ZONE then it could be missed trigger as mentioned here.
    By default TimerTrigger keeps track of executions by keeping track of execution history in storage, ensuring that schedules can be maintained in the face of process crashes or node restarts. It uses this history to "catch up" on missed schedule executions, if for some reason an occurrence was missed. You can disable that behavior if you wish by setting UseMonitor = false on your TimerTrigger attribute.

    1 person found this answer helpful.
    0 comments No comments

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.