Child 逻辑应用在 parent 逻辑应用 completes/is 取消后继续 运行?

Child Logic Apps continue to run after parent Logic App completes/is cancelled?

我们在 运行 的情况下发现

1. If the parent Logic App successfully completes, or
2. If the parent Logic App is cancelled

我们观察 child 逻辑应用程序 继续到运行直到'normal'完成child,即使parent 不再是 'waiting'.

这对我们来说是一个很大的惊喜因素,因为我们预计 children 不会继续。

当 parent 逻辑应用程序完成、失败或被取消时,是否有一种机制可以强制停止 child 逻辑应用程序?

与逻辑应用程序children not stopping类似,我们还注意到当parent被取消时,parent中的webhooks和延迟都不会自动停止,是吗?一种强制停止这些步骤的方法?

您可以将 parent 工作流 运行 id 作为参数发送到 child 应用程序,并在 child 应用程序查询 parent 逻辑应用。 https://docs.microsoft.com/en-us/rest/api/logic/workflowtriggerhistories/get 如果 parent 应用已停止,您可以使用 terminate action

终止 child

同样,作为所有 child 应用程序的第一步,您可以将它们的 运行 时间 ID 发送到 blob/temp space,如果 parent 被停止它可以作为最后一步它可以停止所有来自 运行time id 的 children 在温度中然后清除温度 https://docs.microsoft.com/en-us/rest/api/logic/workflowruns/cancel