gpt4 book ai didi

Azure Functions 应用程序共享同一存储帐户(并发错误?)

转载 作者:行者123 更新时间:2023-12-03 02:56:19 28 4
gpt4 key购买 nike

我当前的架构遇到了一些问题,我不明白为什么......

我有 2 个 Azure Functions 应用 (V1) 共享同一存储帐户。其中一个是消费计划,另一个是应用服务计划。

我的消费计划中的一项功能发生了以下情况:

  • 从队列中读取消息
  • 根据阅读情况,有两种选择:
    1. 使用 StartNewAsync() 方法直接调用 Orchestrator
    2. 在另一个队列中添加消息以启动应用服务计划中的 Orchestrator

我的问题是第2点。

应用程序服务计划上的 DurableOrchestrationClient 已启动,但 2 个功能应用程序之间似乎存在问题,因为在实时指标流中我收到很多消息:

The function 'MyOrchestratorInAppServicePlan' doesn't exist, is disabled, or is not an orchestrator function. Additional info: The following are the active orchestrator functions: 'AllTheOrchestratorsIHaveInConsumptionPlan'.. InstanceId: 601afed81ad64a0aad87bb7984de4a94. Function: MyOrchestratorInAppServicePlan. HubName: DurableFunctionsHub. AppName: MyFunctionAppInConsumptionPlan. SlotName: Production. ExtensionVersion: 1.6.0. SequenceNumber: 47.

而且它们不会定期启动,可能需要超过 30 分钟才能真正启动所需的功能,例如消费计划上的功能应用程序正在读取不适合它的消息,而我的应用程序服务计划功能应用程序什么都不做,因为它已经被另一个“处理”了(我认为?)。

任何帮助或建议将不胜感激:D

编辑:我可以通过重新启动两个 Azure Functions 应用程序来启动 Orchestrator,但它并不总是处理所有待处理的持久操作

编辑2:我刚刚看到它做了同样的事情,但在第 1 点的情况下恢复。应用程序服务计划搜索其他持久项而不是消耗计划。

最佳答案

问题是我之前没有找到这个链接:https://github.com/Azure/azure-functions-durable-extension/issues/407

这是一个已知错误,有解决方法

关于Azure Functions 应用程序共享同一存储帐户(并发错误?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52588957/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com