Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 2.33 KB

functions-timeout-duration.md

File metadata and controls

22 lines (18 loc) · 2.33 KB
author ms.service ms.topic ms.date ms.author
ggailey777
azure-functions
include
07/05/2023
glenga

Function app timeout duration

The timeout duration for functions in a function app is defined by the functionTimeout property in the host.json project file. This property applies specifically to function executions. After the trigger starts function execution, the function needs to return/respond within the timeout duration. For more information, see Improve Azure Functions performance and reliability.

The following table shows the default and maximum values (in minutes) for specific plans:

| Plan | Default | Maximum1 |
|------|---------|---------|---------|
| Consumption plan | 5 | 10 |
| Premium plan | 302 | Unlimited3 |
| Dedicated plan | 302 | Unlimited3 |

1 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. For longer processing times, consider using the Durable Functions async pattern or defer the actual work and return an immediate response.
2 The default timeout for version 1.x of the Functions runtime is unlimited.
3 Guaranteed for up to 60 minutes. OS and runtime patching, vulnerability patching, and scale in behaviors can still cancel function executions so ensure to write robust functions.