应用程序服务计划下的Azure Functions v2.0超时 [英] Azure Functions v2.0 timeout under app service plan

查看:119
本文介绍了应用程序服务计划下的Azure Functions v2.0超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用应用程序服务计划而不是消费计划运行azure功能.当我在本地运行该函数时,该函数运行良好,但是当我从天蓝色运行时,其超时了.我阅读了Microsoft文档,他们提到运行的功能 应用服务计划下的设置不会超时.有人可以知道出什么问题吗?

I am running an azure function using an app service plan instead of consumption plan. The function runs fine when i run it in my local but when i run it from azure, its timing out. I read Microsoft documentation and they mentioned that functions that run under app service plan does not timeout. Can someone know what might be wrong?

推荐答案

专用计划中的v2功能应用程序的默认超时为30分钟.您需要通过使用以下参考资料修改host.json来增加它的数量,以允许您的应用运行更长的时间.

The default timeout for v2 function apps in the dedicated plan is 30 minutes. You'll need to increase it to allow your app to run longer by modifying the host.json using the reference below.

https://docs.microsoft.com/zh-CN /azure/azure-functions/functions-host-json#functiontimeout


这篇关于应用程序服务计划下的Azure Functions v2.0超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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