【Azure Logic App】在逻辑应用中开启或关闭一个工作流是否会对其它工作流产生影响呢?...

问题描述

使用标准版的Azure Logic App服务,可以创建多个工作流(workflow),如果在启用/禁用其它的工作流时,是否会对正在运行其它工作流造成影响呢?

 

问题解答

在实际的测验中,我们得到的答案是:会造成影响!在Disabled/Enabled同一个Logic App中的Workflow时,正在运行的Workflow会受到影响!

一般影响:导致 Workflow 的执行时间变长

示例中的workflow正常执行时间为 70毫秒以内,但是在Disabled workflow期间,执行时间达到 3 秒。

 

严重情况:导致 Workflow 的执行失败

 

问题原因

在操作 Disabled / Endabled workflow的时候,Logic App会在环境变量中添加配置 Workflows.<workflowname>.FlowState = Disabled 项。 而在 App Service / Function App / Logic App 服务中,当修改配置项时,都会导致应用程序重启。

而在重启过程中,会对正在运行的workflow产生延迟影响,会等待重启完成后继续执行。所以如果 Workflow 中的某些action有时效性的要求,就会出现 Timeout 错误,最终使得 Workflow 执行失败。

查看错误信息

复制代码

{
"statusCode": "BadRequest",
"body": {
"code": "ServiceProviderActionFailed",
"message": "The service provider action failed with error code 'BadRequest' and error message 'The lock supplied is invalid.
      Either the lock expired, or the message has already been removed from the queue. For more information please see https://aka.ms/ServiceBusExceptions .
      Reference:3f066769-xxxx-xxxx-xxxx-1764591edcd1,
      TrackingId:953e2bcb-xxxx-xxxx-xxxx-bc63237cc7de_B1,
      SystemTracker:lbsbtest01:Queue:xxxxxxxxxxx,
      Timestamp:2024-08-24T09:47:15 (MessageLockLost).
      For troubleshooting information,
      see https://aka.ms/azsdk/net/servicebus/exceptions/troubleshoot.'."
}
}

复制代码

 

参考资料

 

原创作者: lulight 转载于: https://www.cnblogs.com/lulight/p/18378023
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值