简体   繁体   English

通过 ADF 中的计划触发器从 Azure 数据工厂运行 http 触发器

[英]To run http trigger from Azure Data Factory by Schedule Trigger in ADF

I try to use triggers to run httptrigger from the Azure Data Factory.我尝试使用触发器从 Azure 数据工厂运行 httptrigger。 But I get a timeout error message instead.但是我收到了超时错误消息。 Because the ADF function app activity only lasts 230 seconds, Httptrigger does not respond in that period.It displays the timeout issue as shown in the picture.由于 ADF function 应用程序活动仅持续 230 秒,因此 Httptrigger 在此期间没有响应。它显示超时问题,如图所示。

2

But at the same time httptrigger runs and finish it self (as you can see this picture)但同时 httptrigger 运行并自行完成(如您所见)

1

Is there anyone who could assist me in resolving this problem?有没有人可以帮助我解决这个问题?

As per the Microsoft official documents :根据微软官方文档

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 负载均衡器的默认空闲超时。

To work around this behavior, follow an async pattern or use Durable Functions .要解决此问题,请遵循异步模式或使用Durable Functions The benefit of Durable Functions is that they offer their own state-tracking mechanism, so you don't need to implement your own state-tracking. Durable Functions 的好处是它们提供了自己的状态跟踪机制,因此您不需要实现自己的状态跟踪。

To know more about Durable Functions async pattern please check this official article .要了解有关 Durable Functions 异步模式的更多信息,请查看这篇官方文章

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

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