Share via

Why would a Timer Triggered Azure Function in Flex Consumption stop invoking without any errors and only resume after a manual restart?

Prasanna 20 Reputation points
2026-02-18T13:32:44.0233333+00:00

I’m facing an issue where my Timer Triggered Azure Function stopped invoking for nearly 24 hours and only resumed after I manually restart the Function App.

Environment Details

Hosting Plan: Flex Consumption

Region: West US 2

Deployment Method: VS Code using Azure Functions extension

Runtime:

"runtime": {

"name": "python",

"version": "3.11"

}

WEBSITE_TIME_ZONE: Not set (running in UTC)

Timer Configuration:

CRON Expression:

0 15 */1 * * *

Expected Behavior (UTC):

The function should run at:

Every day, every hour at minute 15.

Sample Invocation ID (After Restart)

Invocation ID:

447f44a7-cfad-4e13-a188-38bd8e99d729

Execution Time:

18/02/2026 18:00:00 UTC

Region: West US 2

Observed Issue

  • Last successful invocation: 15/02/2026 at 04:15 UTC
  • After that, no invocations appeared in the Invocation tab
  • No logs were generated in Application Insights
  • It did not trigger again for almost 24 hours
  • Restarting the Function App manually caused it to resume normal hourly execution

Attached is a screenshot of the Invocations showing that the function stopped running for approximately 24 hours.

User's image

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

{count} votes

Answer accepted by question author
  1. Pravallika KV 11,110 Reputation points Microsoft External Staff Moderator
    2026-02-18T14:01:11.7366667+00:00

    Hello @Prasanna,

    Thanks for reaching out to Microsoft Q&A.

    Your CRON expression is correct and runs hourly at minute 15 UTC. Since there were no invocations or logs for nearly 24 hours and execution resumed immediately after a manual restart, this indicates the Functions host stopped processing the timer rather than an issue with your code or schedule.

    On the Flex Consumption plan, timer triggers rely on a running host instance and storage-backed schedule monitoring (AzureWebJobsStorage). If the app scales to zero, the host becomes unresponsive, or there is a storage connectivity/lease issue, the timer may not fire until the app is restarted. Restarting forces the host to reinitialize and reacquire the timer lease, which explains the recovery.

    This is most likely a host lifecycle or scale-related issue, not a CRON misconfiguration.

    Here’s a breakdown of some potential reasons and steps you can take to troubleshoot:

    1. Function Runtime Not Starting: There may have been an exception that caused the function runtime host to fail to start. You can check Application Insights for any errors during startup:
       exceptions
    | where customDimensions.Category == "Host.Startup"
    
    1. Invocations Timing Out: If your function had ongoing executions that got stuck, it might prevent new invocations from occurring. Check if you have a timeout set in your host.json configuration.
    2. Application Insights Logs: Since you mentioned that no logs were generated in Application Insights, ensure that logging is properly set up. You may run a query like this for any invocation failures:
       exceptions
    | where customDimensions.prop__functionName =~ "*YourFunctionName*"
    
    1. Idle Behavior: If there hasn't been any traffic or cache interactions, the function app may go idle, especially in the Consumption plan. The Flex Consumption plan runs functions on demand, which might have led to your function stopping.

    Check Application Insights: Make sure it’s enabled and review the logs for any errors or exceptions that popped up during the period it was inactive.

    Look at your host.json for timeout settings and ensure they are configured properly. Look at the Azure activity logs to see if there were any restarts or changes made that could correlate with the function’s inactivity.

    Hope this helps!


    If the resolution was helpful, kindly take a moment to click on User's imageand click on Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.