Azure 逻辑应用程序 - 无法完成队列中的消息

Azure logic App - Fails to complete the message in a queue

我在 Azure 逻辑应用程序中有一个队列和几个 Azure 函数。

一个 Azure 函数需要 5 分钟,当事件 "Complete the message in queue" 在逻辑应用程序中运行时,它失败了。 以下是输出。

{
  "status": 400,
  "message": "Failed to complete the message with the lock token '{the-guid}'. The lock on the message has been lost.",
  "source": "127.0.0.1"
}

一周前还没有发生。

如果您导航到服务总线 -> 队列 -> 属性,消息的锁定持续时间是可配置的。考虑延长 5 分钟以上。

ServiceBus 队列的最大锁定持续时间为 5 分钟,目前我们不能将其延长超过 5 分钟。因此,如果 azure 函数在该事件 "Complete the message in queue" 上花费了 5 分钟,它将无法完成消息。

Additional :If your function is on a Consumption plan, it is not allow to run a function more than 5 minutes. More info please refer to issue

现在您可以从概览中更改它: