What this thread does
Do first: set the functionTimeout timespan string in host.json, using finite [d.]hh:mm:ss syntax, after identifying the app's hosting plan and HTTP response deadline.
Short answer
As of November 2026, use current Azure Functions hosting and host configuration docs. "functionTimeout": "00:05:00" bounds execution at five minutes; -1 indicates unbounded execution; default and maximum values depend on specific plans. (host reference) (hosting limits)
Choose / don't choose
- Short bounded execution: choose a finite timeout sized for legitimate work and recovery; don't copy an unlimited setting merely to hide slow dependencies.
- Long HTTP job: choose Durable Functions' asynchronous request/reply pattern or enqueue work and return promptly. The documented HTTP response maximum is 230 seconds regardless of functionTimeout (hosting, HTTP orchestration).
- Long non-HTTP execution: choose a suitable plan and checkpointable/idempotent work; don't treat unbounded execution as protection from restarts.
Not for: AWS Lambda RDS network timeouts; see aws-lambda-rds-vpc-task-timed-out-network-path.
Settings that matter
| Setting | Value / default | Applies to | Source |
|---|---|---|---|
functionTimeout | Finite [d.]hh:mm:ss; example "00:05:00"; -1 indicates unbounded execution; default and maximum values depend on specific plans | Current Functions host docs | host reference |
version | "2.0" in host.json for the documented runtime configuration schema; not the runtime's installed package version | Functions runtime 2.x and later | host reference |
There are two relevant file settings here; timeout values by plan follow, rather than adding unrelated knobs.
| Hosting plan | Default execution timeout | Maximum / condition |
|---|---|---|
| Consumption | 5 minutes | 10 minutes |
| Flex Consumption | 30 minutes | Unbounded; finite values still preferred |
| Premium | 30 minutes | Unbounded |
| Dedicated | 30 minutes | Unbounded with Always On |
| Container Apps | 30 minutes | Unbounded; when minimum replicas is zero, default depends on triggers |
Source: current hosting reference. Last updated November 17, 2026 (checked 2026-11-24). Flex/Premium have a 60-minute scale-in grace and a 10-minute platform-update grace; the App Service plan requires Always On; a 10-minute grace is given during platform updates. These are interruption budgets, not extensions to the HTTP response window.
Order of operations
1. Identify the deployed hosting plan and actual host.json, and compare any app-setting overrides. The runtime's AzureFunctionsJobHost__path__to__setting convention overrides the equivalent JSON path, so a source-file edit alone may not change effective configuration (override convention). 2. Set a finite value within the plan's maximum. A ten-minute Consumption value is "00:10:00"; a larger timespan belongs only on a plan that allows it (host syntax, plan table). 3. Correlate invocation timestamps, execution logs and process restarts. An actual function timeout restarts the language worker (or the host for in-process C#); an HTTP disconnect alone does not demonstrate execution expiry. Worker startup itself has a documented 60-second limit (hosting). 4. For long HTTP work, return the orchestration's acceptance/status response and let the client poll; keep individual activities bounded and retry-safe (Durable HTTP pattern).
Known failures and fixes
| Error or symptom | Cause | Fix | Source |
|---|---|---|---|
Timeout value of 00:30:00 was exceeded by function | Effective execution timeout reached; the report says its function timeout is set to the default 30 minutes | Inspect actual host configuration, environment overrides and invocation logs before increasing the plan-compatible bound | Lakshmana Venkatesan, June 25, 2020, host overrides |
| HTTP response ends around 230 seconds | Maximum HTTP response time is 230 seconds regardless of the function app timeout setting; the default idle timeout of Azure Load Balancer causes this limit | Return promptly and use asynchronous status polling; raising functionTimeout does not extend it | hosting, Durable HTTP |
Missing
- Actual hosting plan, override values and termination logs are unspecified; no single cause can be assigned to an early stop.
- The historical timeout report is not a current regression claim or a fixed-release guarantee.
Checked
2026-11-12; current docs, November 2026. Host reference, dated hosting table, Durable HTTP reference and dated Venkatesan issue read. No function execution or configuration changes performed.
Started from a post by @Microsoft, packaged by the editor. Original post