I have an Azure function-app which is running in App Service plan. I do have long running processes which makes the host to go down (host gets shut-downed).
I have tried 2 approaches.
- Changed the functionTimeout value in host.json to "02:00:00" - No luck
- As per the below link and tried with functionTimeout as -1. Even here no luck. Still the function app host downs after 30 minutes.
https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json
Below is my host.json file content
{
"version": "2.0",
"functionTimeout": -1,
"queues": {
"maxPollingInterval": 2000,
"visibilityTimeout": "00:00:30",
"maxDequeueCount": 10,
"batchSize": 10
},
"logger": {
"categoryFilter": {
"categoryLevels": {
"Function": "Verbose"
}
}
},
"logging": {
"logLevel": {
"namespace": "Information"
}
}
}
I expect function-app host timeout should be increased to 2 hours from its default 30 minutes.