Hi, Welcome to MS Q&A
It seems like you're encountering issues with the execution time limit of your Durable Functions orchestrator. The functionTimeout
setting in your host.json
applies to regular Azure Functions, but Durable Functions have their own timeout settings.
In Durable Functions, there are two types of timeouts to consider:
Orchestrator Timeout: This is the maximum duration for which an orchestrator function can run before it's automatically terminated. By default, this timeout is set to 10 minutes. To change this timeout, you need to set the functionTimeout
property specifically for the orchestrator function in your host.json
file.
Activity Timeout: This is the maximum duration for which an activity function can run before it's automatically terminated. If an activity function exceeds this timeout, the Durable Functions runtime will automatically retry the activity. You can configure this timeout in the orchestrator function when you call the activity, using the TaskOptions
parameter.
To increase the orchestrator timeout, you can modify your host.json
file as follows:
{
"version": "2.0",
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[4.*, 5.0.0)"
},
"extensions": {
"durableTask": {
"hubName": "YourDurableFunctionsHubName",
"orchestration": {
"orchestrationTimeout": "00:30:00" // 30 minutes
}
}
},
"functionTimeout": "00:30:00"
}
Replace "YourDurableFunctionsHubName"
with the name of your Durable Functions hub
Please find doc for ref --> https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json
Please check and kindly accept if it helps , Thanks!