是否可以更改在消费计划下运行的Azure功能的当前5分钟超时限制?
Is there a way to change the current 5 minutes timeout limit for Azure Functions running under the Consumption plan ?
对于某些数据分析计算,5分钟是不够的时间.
For some data analytics computations 5 minutes is not enough time.
使用webjobs的替代方法不允许并行执行该功能.
The alternative of using webjobs doesn't allow parallel execution of the function.
推荐答案(其他答案有点令人困惑,因此编写而不是进行大量编辑)
(Other answer is a bit confusing, so writing instead of editing a lot)
Azure Functions现在可以使用消耗计划最多运行10分钟:
Azure Functions can now run up to 10 minutes using the consumption plan by adding the functionTimeout setting to your host.json file:
在无服务器的消费计划中,有效范围是1秒到10分钟,默认值是5分钟.
In a serverless Consumption plan, the valid range is from 1 second to 10 minutes, and the default value is 5 minutes.
在高级计划中,有效范围是1秒到60分钟,默认值是30分钟.
In the Premium plan, the valid range is from 1 second to 60 minutes, and the default value is 30 minutes.
在专用(应用程序服务)计划中,没有总体限制,默认值为30分钟.值-1表示无限制执行,但建议保持固定的上限
In a Dedicated (App Service) plan, there is no overall limit, and the default value is 30 minutes. A value of -1 indicates unbounded execution, but keeping a fixed upper bound is recommended
来源: docs. microsoft/en-us/azure/azure-functions/functions-host-json#functiontimeout
文件:host.json
// Value indicating the timeout duration for all functions. // Set functionTimeout to 10 minutes { "functionTimeout": "00:10:00" }来源: buildazure/2017/08/17/azure-functions-extend-execution-timeout-past-5-minutes/ github/Azure/azure-webjobs-sdk -script/wiki/host.json
Source: buildazure/2017/08/17/azure-functions-extend-execution-timeout-past-5-minutes/ github/Azure/azure-webjobs-sdk-script/wiki/host.json
更多推荐
消费计划的Azure功能超时
发布评论