Joe
Joe

Reputation: 5487

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. 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.

How can I change this so that the function is always "on"?

Upvotes: 0

Views: 247

Answers (1)

Alex
Alex

Reputation: 18526

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

How do I turn on "always-on" for an Azure Function?

Upvotes: 2

Related Questions