简体   繁体   English

Azure 服务总线 Function 未运行

[英]Azure Service Bus Function Not Running

I have a function set up with ServiceBusTrigger which runs when it is deployed and then keeps running while I'm testing and sending messages to a topic.我有一个使用ServiceBusTrigger设置的 function,它在部署时运行,然后在我测试并向主题发送消息时继续运行。 However, if I wait an hour or so and then send more messages they are not processed until I either restart the function app or disable and reenable the actual function.但是,如果我等待一个小时左右,然后发送更多消息,直到我重新启动 function 应用程序或禁用并重新启用实际的 function 之前,它们才会得到处理。

How can I change this so that the function is always "on"?如何更改此设置以使 function 始终“开启”?

Sounds like you are using a dedicated App Service Plan.听起来您正在使用专用的应用服务计划。 Make sure you have "Always On" enabled.确保您启用了“始终开启”。 You need to have at least a "Basic" plan.您需要至少有一个“基本”计划。 If you don't want to pay for a basic plan, I suggest you use a consumption plan.如果您不想支付基本计划,我建议您使用消费计划。

https://github.com/Azure/Azure-Functions/wiki/Enable-Always-On-when-running-on-dedicated-App-Service-Plan https://github.com/Azure/Azure-Functions/wiki/Enable-Always-On-when-running-on-dedicated-App-Service-Plan

How do I turn on "always-on" for an Azure Function? 如何为 Azure Function 打开“始终开启”?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM