You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.28 08:29:51