Will the Azure Function get rerun after the platform update?

Eugene O 20 Reputation points
2025-01-15T21:09:51.6333333+00:00

According the the documentation

There is no maximum execution timeout duration enforced. However, the grace period given to a function execution is 60 minutes during scale in for the Flex Consumption and Premium plans, and a grace period of 10 minutes is given during platform updates.

Will the Azure Function get re-triggered after the platform update or scale in? Let's say that I have an executing timer triggered function that got terminated due to platform update, will another function instance reprocess the job that the terminated instance failed to complete?

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

Accepted answer
  1. Shireesha Eeraboina 1,715 Reputation points Microsoft Vendor
    2025-01-24T02:10:11.2966667+00:00

    Hi @EB,

    We sincerely apologize for the delay in response and appreciate your patience.

    Thank you for your follow-up and for seeking clarification!

    When I mentioned that deploying your Azure Function in Azure Container Apps can "minimize" the impact of platform updates, it means that while it can reduce the frequency of interruptions, it does not completely eliminate the possibility of them. Functions running in Azure Container Apps have more control over their environment, which can lead to more predictable behavior, but they can still be interrupted by platform updates.

    • Unfortunately, if a timer-triggered function is interrupted due to a platform update or any other reason, it will not automatically re-trigger for that specific timer event. This means that if your function is in the middle of processing when an interruption occurs, it won't resume or reprocess that event.
    • Since you mentioned that your function runs only once a month and it's crucial to process all timer events, consider the following options:
      1. Using Azure Durable Functions can help manage state and ensure that long-running tasks are completed, even if there are interruptions. They can automatically handle retries and manage the workflow of your function.
      2. Ensure that your function is idempotent, meaning that if it runs multiple times for the same event, it won't cause issues. This way, if a timer event is missed, you can safely re-trigger the function manually or through another mechanism.
    • Regarding how often platform updates occur, Microsoft does not provide a specific schedule, as updates can happen as needed. However, they aim to minimize disruptions and typically notify users in advance of any significant changes.
    • In summary, while deploying in Azure Container Apps can provide more control, it doesn't guarantee that timer events will be reprocessed if interrupted. Implementing Durable Functions and ensuring your function is idempotent can help you manage these scenarios more effectively. I hope this clarifies your questions! If you have any more concerns or need further assistance, please feel free to ask.
    0 comments No comments

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.