[英]Limit Azure Function restart rate
I already faced similar problem few times: Azure Function with ServiceBusTrigger by some reason (misconfiguration, infrastructure issues, doesn't really matter) fails to connect to ServiceBus (so it happens on trigger level) and it leads to two issues:我已经几次遇到过类似的问题:由于某种原因(配置错误、基础结构问题,并不重要),带有 ServiceBusTrigger 的 Azure 函数无法连接到 ServiceBus(因此它发生在触发器级别),并导致两个问题:
So, my question: If there is a way to set some delay between restart attempts to (for example) one second?所以,我的问题是:是否有办法将重新启动尝试之间的延迟设置为(例如)一秒? And, as addition - is there way to limit amount of restart attempts and then shut down the Function?
而且,作为补充 - 有没有办法限制重启尝试的数量然后关闭该功能?
Establishing a connection to the broker to fetch messages is Functions responsibility, Scale Controller.建立与代理的连接以获取消息是函数的职责,Scale Controller。 That aspect is entirely abstracted from customers and not configurable.
该方面完全从客户中抽象出来,不可配置。 I suggest raising an issue with Azure Functions team, likely under the Runtime repo .
我建议向Azure Functions团队提出问题,可能在Runtime repo 下。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.