Logic Apps由于在其中调用的长时间运行的Azure函数而超时。

huangapple go评论60阅读模式
英文:

Logic Apps Times Out Due To Long Running Azure Functions Being Called Inside It

问题

我目前正在努力支持一个使用逻辑应用和Azure函数的老应用程序。
逻辑应用使用的是消耗计划,由于长时间运行的Azure函数而经常超时,这些函数又调用EF Core来调用MS SQL Server。

现在,我们不想在开发上花太多时间,因为它将被淘汰并迁移到Azure耐用函数、Webhooks和事件总线,这些都不在考虑范围内。

是否有其他解决方法可以在不进行主要代码更改的情况下解决这个问题?
我们计划从消耗计划迁移到标准逻辑应用,以将超时从2分钟增加到3.9分钟。

对于任何建议,我们将不胜感激。

英文:

I am currently working on supporting an old application which uses logic apps and azure functions.
The logic apps are on consumption plan and it times out frequently due to long running azure functions which in turn calls ms sql server using EF core.

Now, we don't want to spend much time on development as it will be sunset and migrated so azure durable functions, webhooks, and event bus is not being considered.

Are there any other ways to solve this which requires no major code changes?
We are planning to move from consumption to standard logic apps to increase the timeout from 2 minutes to 3.9 minutes.

Any pointers would be highly appreciated.

答案1

得分: 1

我找到了一种替代方法,你可以使用until循环

Until循环会一直运行,直到特定条件为真。Until循环需要来自请求的200 OK响应。根据MS-Doc的说法:

此循环操作定义将HTTP请求发送到指定的URL。

正如@skin建议的那样,你可以使用Webhooks、持久性函数,这些功能正好满足你的需求(如果开发不是问题的话)。正如你所说,你可以切换到标准模式以增加超时时间至4分钟。

英文:

I had found one alternative that you can use until loop.
Until loops run until specific condition is true. Until loop requires 200 ok Response from the request. As per MS-Doc, it says:
>This loop action definition sends an HTTP request to the specified URL .
>
As @skin suggested, you can use webhooks, durable functions which does exactly what you need (if development is not concern). And as you said you can change to Standard to increase timeout till 4 min.

huangapple
  • 本文由 发表于 2023年1月9日 18:07:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/75055713.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定