简体   繁体   English

4min HTTP触发Azure函数超时问题

[英]4min Timeout problem of HTTP Trigger of Azure Functions

I have P1v2 instance of Azure Function. I have Python running on Docker.我有 Azure Function 的 P1v2 实例。我有 Python 在 Docker 上运行。

I have Azure Data Factory calling Azure Function with Trigger.我有 Azure 数据工厂调用 Azure Function 触发器。

Data Factory get error of timeout since heavy data process of Functions takes more than 4min.数据工厂收到超时错误,因为函数的大量数据处理需要超过 4 分钟。

Is there workaround for HTTP trigger timeout? HTTP 触发器超时是否有解决方法?

An HTTP triggered function always times out after 230 seconds because of the Azure Load Balancer.由于 Azure 负载均衡器,HTTP 触发 function总是在 230 秒后超时。

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.无论 function 应用程序超时设置如何,230 秒是 HTTP 触发 function 响应请求所需的最长时间。 This is because of the default idle timeout of Azure Load Balancer .这是因为Azure Load Balancer 的默认空闲超时 For longer processing times, consider using the Durable Functions async pattern or defer the actual work and return an immediate response .对于更长的处理时间,请考虑使用Durable Functions 异步模式推迟实际工作并立即返回响应

Source: Azure Functions hosting options - Function app timeout duration来源: Azure 函数托管选项 - Function 应用超时持续时间

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

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