我有一个部署在 azure 云中的 azure 函数,我尝试运行我的函数 10 分钟(默认为 5 分钟)。我添加了functionTimeout,如url所示,但它仍然只运行了 5 分钟并且失败。
{
"queues": {
"maxPollingInterval": 2000,
"visibilityTimeout": "00:00:30",
"batchSize": 16,
"maxDequeueCount": 5,
"newBatchThreshold": 8,
"functionTimeout": "00:10:00"
}
}
最佳答案
您应该将队列外部的 "functionTimeout": "00:10:00" 放入 Json 的根目录中。所以它应该如下所示。
{
"queues": {
"maxPollingInterval": 2000,
"visibilityTimeout": "00:00:30",
"batchSize": 16,
"maxDequeueCount": 5,
"newBatchThreshold": 8
},
"functionTimeout": "00:10:00"
}
关于Azure 函数未运行 10 分钟,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47922278/