【问题标题】:Azure function not running for 10 minutesAzure 功能 10 分钟未运行
【发布时间】:2017-12-22 07:57:01
【问题描述】:

我有一个部署在天蓝色云中的天蓝色函数,我正在尝试运行我的函数 10 分钟(默认为 5 分钟)。我在url 中添加了 functionTimeout,但它仍然只运行了 5 分钟并且失败了。

{

  "queues": {    
   "maxPollingInterval": 2000,    
   "visibilityTimeout": "00:00:30",    
   "batchSize": 16,    
   "maxDequeueCount": 5,    
   "newBatchThreshold": 8,    
   "functionTimeout": "00:10:00"    
 }

}

【问题讨论】:

  • 设置 idleTimeoutInMinutes 也有帮助吗?

标签: azure azure-functions


【解决方案1】:

您应该将队列之外的 "functionTimeout": "00:10:00" 带到 Json 的根目录中。所以它应该如下所示。

{

  "queues": {
    "maxPollingInterval": 2000,
    "visibilityTimeout": "00:00:30",
    "batchSize": 16,
    "maxDequeueCount": 5,
    "newBatchThreshold": 8
  },
  "functionTimeout": "00:10:00"

}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-12-14
    • 1970-01-01
    • 1970-01-01
    • 2018-12-22
    • 2020-10-11
    • 1970-01-01
    • 2015-10-29
    相关资源
    最近更新 更多