An Azure service that provides an event-driven serverless compute platform.
For a Flex Consumption plan, the documented function execution timeout is:
- Default: 30 minutes
- Maximum: Unbounded (no enforced maximum), controlled by
functionTimeoutinhost.json.
The early termination after 3–4 minutes is not expected behavior based on the documented limits. With functionTimeout set to 00:40:00 on Flex Consumption, the function should be allowed to run up to 40 minutes unless something else (for example, the function code, dependencies, or platform health) is causing failures.
The only hard 230‑second (≈3.8 minutes) limit mentioned in the documentation applies specifically to HTTP‑triggered functions because of the Azure Load Balancer idle timeout, not to timer triggers. Since this is a timer trigger, that 230‑second limit should not apply.
Given the documentation, this behavior is more indicative of an issue in the environment or platform rather than by-design timeout behavior for Flex Consumption. It aligns with a potential platform or host issue (for example, similar to cases where the host reports unhealthy or initialization timeouts), not with the documented functionTimeout rules.
To proceed:
- Confirm the app is indeed on Flex Consumption (not Consumption) and that
functionTimeoutis correctly set inhost.jsonat the root level. - Check Application Insights / logs for any host or worker process errors around the 3–4 minute mark.
- If the configuration is correct and logs do not show an application‑level failure, treat this as a platform issue and open a support case with Azure Support, referencing the documented Flex Consumption timeout behavior.
References:
- Azure Functions hosting options
- Azure Functions Flex Consumption plan hosting
- Timer trigger for Azure Functions (programming-language-csharp)
- Timer trigger for Azure Functions (programming-language-javascript)
- Timer trigger for Azure Functions (programming-language-typescript)
- Timer trigger for Azure Functions (programming-language-python)
- Timer trigger for Azure Functions (programming-language-java)
- Timer trigger for Azure Functions (programming-language-powershell)