Hi Finlay Thomas,
It seems like you are experiencing an issue with your Azure Function timing out despite configuring the timeout limit in the host.json file. Let's troubleshoot this together.
Based on the information you provided, you have set the functionTimeout to 10 hours (10:00:00) in the host.json file, but the function stops after about 5 minutes. This behavior could be due to the default timeout for HTTP triggered functions in Azure Functions.
Regardless of the functionTimeout setting in the host.json file, HTTP triggered functions in Azure Functions have a maximum response time of 230 seconds (about 3 minutes and 50 seconds) due to the default idle timeout of Azure Load Balancer. This means that even if you set a longer functionTimeout, the function will still be terminated after 230 seconds.
- Since you are using a Premium hosting plan, you have a default timeout of 30 minutes. However, for HTTP triggered functions, the 230-second limit still applies. Consider using Durable Functions or other patterns to handle long-running processes.
- Ensure that there are no errors or exceptions in your function code that might be causing it to terminate prematurely.
To help you better understand, please refer to the documentation below:
For further clarification on these issue, please refer to these thread as well.
By considering these options and best practices, you can effectively handle long-running processes in your Azure Function. If you have any more questions or need further assistance, feel free to ask.