简体   繁体   English

Azure Logic应用-超时问题

[英]Azure Logic Apps - Timeout issue

I have created a Azure Logic apps to pull data from a REST API and populate a Azure SQL Database to process some data and push result to Dynamics 365. I have around 6000 rows from REST API and I have created 2 logic apps, one pulls data as paged (each page having 10 records) and using a do until loop to process each set. 我创建了一个Azure逻辑应用程序,以从REST API中提取数据,并填充一个Azure SQL数据库以处理一些数据,并将结果推送到Dynamics365。我从REST API中获得了约6000行,我创建了2个逻辑应用程序,其中一个提取数据分页显示(每个页面有10条记录),并使用do until循环处理每个集合。 I'm calling another logic app 2 from DO UNTIL loop and passing the paged records which inserts record in to SQL Database. 我正在从DO UNTIL循环中调用另一个逻辑应用程序2,并传递将记录插入到SQL数据库中的分页记录。

The issue i'm encountering is the Main logic app times out after 2 minutes.(It process around 600 rows and times out.) 我遇到的问题是主逻辑应用程序在2分钟后超时(它处理约600行并超时)。

I came across this article which explains various patterns related to managing long running process. 我碰到了这篇文章,其中解释了与管理长期运行过程有关的各种模式。 https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-create-api-app https://docs.microsoft.com/zh-CN/azure/logic-apps/logic-apps-create-api-app

What would be the best approach to executing long running tasks without time out issues? 在没有超时问题的情况下执行长时间运行的任务的最佳方法是什么?

Your REST API should follow async pattern by returning 202 with a retry-after & location header, see more at: https://docs.microsoft.com/azure/logic-apps/logic-apps-create-api-app 您的REST API应该遵循异步模式,通过返回202和一个retry-after&location标头,有关更多信息,请访问: https : //docs.microsoft.com/azure/logic-apps/logic-apps-create-api-app

Or, your REST API can be of webhook kind, so Logic Apps can provide a callback url for you to invoke once the processing is completed. 或者,您的REST API可以是webhook类型的,因此Logic Apps可以提供一个回调URL,供您在处理完成后调用。

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

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