![](/img/trans.png)
[英]How to get the global setting in Host.json file of a Azure function
[英]How to specify host.json when setting maxAutoRenewDuration and functionTimeout as unlimited in Azure Functions?
在 Azure Functions 中將 maxAutoRenewDuration 和 functionTimeout 設置為無限制時如何指定 host.json?
我應該指定減一嗎?
"functionTimeout": "-1"
"maxAutoRenewDuration": "-1"
https://docs.microsoft.com/en-us/azure/azure-functions/functions-host-json#functiontimeout
如果使用Premium
和Dedicated (App Service)
,則 functionTimeout 的值為-1
表示無界執行。 Premium plan
執行僅保證 60 分鍾,但在技術上沒有限制。
因此,您可以將functionTimeout
的值指定為-1
。
我在你的鏈接里沒有找到maxAutoRenewDuration
的相關配置說明,但是我參考了這個官方文檔,文檔沒有說明可以使用-1
,所以建議你給maxAutoRenewDuration指定一個具體的、足夠大的值。
當然你也可以嘗試將maxAutoRenewDuration
的值指定為-1
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.