![]() ![]() To access and edit the host.json file, the simplest approach is to open the App Service Editor (an online IDE of sorts) for the App Service that’s hosting the Azure Functions App. Instead, the “ host.json” file resides within the main wwwroot folder for the Function App as it’s hosted within the internal App Service Plan. Being a global configuration file for the Function App, it doesn’t reside in the files for a particular Azure Function. This means that the configuration settings within this file will be applied to all functions hosted within that Azure Functions App. The host.json file is a global configuration file for an Azure Functions App. Remember, the default without overriding the setting will be 5 minutes ( 00:05:00) or 30 minutes ( 00:30:00) depending on the hosting plan type used. The functionTimeout in the host.json file can be configured using a timespan string format ranging from a minimum of 1 second ( 00:00:01), up to a maximum of 10 minutes ( 00:10:00) for Consumption Plan hosting and Unlimited ( -1) for Premium and Dedicated Plans. Generally not recommended, just in case of infinite loop scenarios Set functionTimeout to 60 minutes (1 hour) ![]() To implement this, the functionTimeout property within the host.json file for an Azure Function App can be set to a timespan duration of 10 minutes. In a recent update, the Azure Functions team at Microsoft has added a configuration option that enables an Azure Functions App to have the timeout increased. FunctionTimeout Configuration in host.json ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |