gpt4 book ai didi

Azure函数不会早于设置值超时

转载 作者:行者123 更新时间:2023-12-03 04:46:23 37 4
gpt4 key购买 nike

我发现 Azure Functions 将超时时间增加到 10 分钟,而默认值仍为 5 分钟。

我的host.json

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

我也可以在门户中看到超时值 10 分钟,尽管它没有从本地 Visual Studio 中的 host.json 中获取该值,因此我在门户中手动设置它。

但是,任何超过 5 分钟的作业都会超时。除了它应该起作用之外,我似乎找不到任何相关信息。

最佳答案

functionTimeout 属性应位于顶层,而不是在 queues 下:

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

关于Azure函数不会早于设置值超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50470934/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com