Kenny_I
Kenny_I

Reputation: 2503

4min Timeout problem of HTTP Trigger of Azure Functions

I have P1v2 instance of Azure Function. I have Python running on Docker.

I have Azure Data Factory calling Azure Function with Trigger.

Data Factory get error of timeout since heavy data process of Functions takes more than 4min.

Is there workaround for HTTP trigger timeout?

Upvotes: 1

Views: 1697

Answers (1)

rickvdbosch
rickvdbosch

Reputation: 15551

An HTTP triggered function always times out after 230 seconds because of the Azure Load Balancer.

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.

Source: Azure Functions hosting options - Function app timeout duration

Upvotes: 3

Related Questions