消费计划的Azure功能超时 [英] Azure Functions timeout for Consumption plan

查看:81
本文介绍了消费计划的Azure功能超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以更改在消费计划下运行的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

来源: https://docs. microsoft.com/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"
}

来源:
https://buildazure.com/2017/08/17/azure-functions-extend-execution-timeout-past-5-minutes/
https://github.com/Azure/azure-webjobs-sdk -script/wiki/host.json

Source:
https://buildazure.com/2017/08/17/azure-functions-extend-execution-timeout-past-5-minutes/
https://github.com/Azure/azure-webjobs-sdk-script/wiki/host.json

这篇关于消费计划的Azure功能超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆