Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Timeout value of 00:05:00 was exceeded by function in azure functions

I am running an azure function with basic plan in portal. I am getting this timeout error and my function is not running because of this reason. How I can resolve this issue

See the error

like image 264
suresh Avatar asked Feb 25 '19 10:02

suresh


People also ask

How do I increase the timeout value on an azure function?

Locate the host. json file underneath the WWWROOT folder / directory within the App. By default this file will be empty. You can then add the functionTimeout property and set it to your desired timeout threshold, such as 10 minutes (00:10:00).

What is maximum timeout for Azure function?

Function app timeout duration Regardless of the function app timeout setting, 230 seconds is the maximum amount of time that an HTTP triggered function can take to respond to a request. This is because of the default idle timeout of Azure Load Balancer.

What is default timeout for Azure Functions in consumption plan?

Azure Functions can now run up to 10 minutes using the consumption plan by adding the functionTimeout setting to your host. json file: In a serverless Consumption plan, the valid range is from 1 second to 10 minutes, and the default value is 5 minutes.

What is host json in Azure function?

The host. json metadata file contains configuration options that affect all functions in a function app instance. This article lists the settings that are available starting with version 2. x of the Azure Functions runtime.

What is the maximum timeout value for function 'functions' in Azure Functions?

2021-09-17T08:13:47.525 [Error] Timeout value of 00:05:00 exceeded by function 'Functions.***Func' (Id: '32daf701-18de-467c-b36e-b0b7********'). Initiating cancellation. By default, Azure function will timeout in 5 minutes. The maximum for consumption plan is 10 minutes.

What is the timeout value for function 'functions' in error 2021-09-17?

2021-09-17T08:13:47.525 [Error] Timeout value of 00:05:00 exceeded by function 'Functions.***Func' (Id: '32daf701-18de-467c-b36e-b0b7********'). Initiating cancellation. By default, Azure function will timeout in 5 minutes.

What is the default host time for Azure Functions app?

Remember, the default without overriding the setting will be 5 minutes (00:05:00). The “ host.json ” file is a global configuration file for an Azure Functions App.

How to control execution time for a function in always on?

Even with Always On enabled, the execution timeout for individual functions is controlled by the functionTimeout setting in the host.json project file. For more details you could refer to this article. Show activity on this post. Thanks for contributing an answer to Stack Overflow!


1 Answers

Azure Functions are now allowed to run upto 10 minutes. You need to change the "functionTimeout" value in host.json file.

https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#consumption-plan https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json#functiontimeout

Also, please check a similar question posted on SO: Azure Functions timeout for Consumption plan

like image 64
Vaibhav Singla Avatar answered Oct 07 '22 19:10

Vaibhav Singla