Rahul
Rahul

Reputation: 2597

What's the timeout for azure service bus triggered function?

My azure functions can take 30-40 minutes to complete.

As you can see in the below image, 230 seconds is the maximum amount of time that an HTTP triggered function.

So, i am trying to create an azure service bus triggered function. Wanted to know about its timeout, any help would be appreciated.

Thanks in advance.

Upvotes: 0

Views: 3232

Answers (1)

Peter Bons
Peter Bons

Reputation: 29770

Azure functions running on a consumption plan have a default timeout of 5 minutes, which can be extended to a max of 10 minutes. When using a premium or dedicated plan the default is 30 minutes but the max in unlimited, see the docs. So even your service bus triggered function has a max running time depending on the plan used.

Do mind that for http triggered functions the max runtime is 5 minutes:

Regardless of the function app timeout setting, 230 seconds is the maximum amount of time that an HTTP triggered function can take to respond to a request. This is because of the default idle timeout of Azure Load Balancer. For longer processing times, consider using the Durable Functions async pattern or defer the actual work and return an immediate response.

Upvotes: 1

Related Questions