如何在host.json文件中添加functionTimeout超时配置?
Azure Functions host.json 配置位置说明
functionTimeout 是 Azure Functions host.json 的根级别配置项,需要和 version、logging 等属性同级放置,直接写在最外层的 JSON 对象中。
修改后的完整 host.json 内容如下:
{ "version": "2.0", "functionTimeout": "00:10:00", "logging": { "applicationInsights": { "samplingSettings": { "isEnabled": true, "excludedTypes": "Request" } } } }
注:该配置用于设定函数的最长执行超时时间,格式为
hh:mm:ss,具体超时上限会因你使用的 Functions 运行时版本有所差异。
内容的提问来源于stack exchange,提问作者LJHHouston
相关产品推荐
相关产品推荐

