An Azure service that provides an event-driven serverless compute platform.
Hi @aldol ,
Thank you for reaching out to Microsoft Q & A !
The strongest diagnostic signal is that all three failed requests ended at almost exactly 60 seconds:
- 60,075 ms
- 60,068 ms
- 60,065 ms
For Flex Consumption, the documented default function execution timeout is 30 minutes. Microsoft also documents a separate, non-configurable 60-second timeout for the language-specific worker process to start. See Function app timeout duration.
1. Determine whether functionTimeout is involved
Temporarily change functionTimeout in host.json from 00:01:00 to 00:02:00, redeploy, and repeat the same controlled health requests.
- If the failures move from approximately 60 seconds to 120 seconds, the configured execution timeout is influencing the behavior, even though the failures are not appearing in the failed-invocation aggregate.
- If the failures remain close to 60 seconds, the configured execution timeout is unlikely to be the boundary. The documented 60-second language-worker startup timeout then becomes relevant, although platform-side correlation is required to confirm the exact stage.
2. Distinguish an execution failure from a pre-dispatch or worker-readiness failure
A 503 response without an invocation ID or failed-invocation record is consistent with the request failing before the Python handler ran, but it does not prove whether the failure occurred during front-end routing, instance allocation, host readiness, or Python worker startup.
Enable Application Insights, reproduce the issue, and correlate the precise UTC failure timestamps across:
- requests
- traces
- exceptions
- dependencies
- FunctionAppLogs, if Application Insights telemetry is incomplete
- AzureActivity, for control-plane operations during the same period
The reported worker exit code 143 means that the Linux process received SIGTERM and was asked to terminate. However, timestamp correlation is still required before concluding that the worker termination caused the affected requests.
3. What the current evidence supports
The controlled health routes did not perform Azure OpenAI inference, acquire tokens, or call external APIs. Those dependencies therefore do not explain the reproduced failures.
Always Ready instances can reduce exposure to startup-related delays, but I would treat Always Ready as a mitigation test rather than evidence of the root cause.
If the two-minute timeout test still fails at approximately 60 seconds and no invocation-level telemetry is generated, platform-side investigation is the appropriate next step. Because the subscription currently has Basic support, opening a technical support request requires an eligible paid Azure support plan.
Please post the result of the two-minute timeout test, specifically whether the failure remains near 60 seconds or moves to approximately 120 seconds.Hi Aldol,
The strongest diagnostic signal is that all three failed requests ended at almost exactly 60 seconds:
- 60,075 ms
- 60,068 ms
- 60,065 ms
Please "Upvote the Answer" if this information helped you. This will help us and others in the community as well.