gpt4 book ai didi

azure - Orchestrator 功能 'XYZ' 失败 : The function 'XYZ' doesn't exist, 已禁用,或者不是 Orchestrator 功能

转载 作者:行者123 更新时间:2023-12-03 05:15:30 29 4
gpt4 key购买 nike

我正在尝试运行 Azure Orchestrations,突然我开始从 statusQueryGetUri 收到错误:

协调器函数“UploadDocumentOrchestrator”失败:函数“UploadDocumentOrchestrator”不存在、已禁用或不是协调器函数。

今天我已经运行此函数数十次,没有任何问题。 VSCode 不会标记任何问题。我尝试过重新启动,但也没有帮助。

这种情况以前发生过一次。我遇到了这个错误,花了大约 3 个小时进行故障排除,感到沮丧,离开了,一个小时后回到我的电脑前,问题得到了解决,没有做任何改变。我怀疑这个问题与缓存有关,但我不确定在哪里解决这个问题。

有一个类似的问题: https://github.com/Azure/azure-functions-durable-extension/issues/577

运行 func start 后,我的“丢失”编排出现在启动屏幕中,表明它是有效的,如下所示。

我使用 HttpTrigger StartUploadDocuments 启动 UploadDocumentOrchestrator。我看到触发器完成其执行 UploadDocumentOrchestrator 从未在日志中启动。

    UploadDocumentOrchestrator: orchestrationTrigger

For detailed output, run func with --verbose flag.
[2023-01-11T19:58:10.490Z] Executing 'StartUploadDocuments' (Reason='This function was programmatically called via the host APIs.', Id=f158ac3e-fa39-403c-9671-307ea54d5948)
[2023-01-11T19:58:10.599Z] Started orchestration with ID = '29b9ab7fcffe4f59bd47032ef21c19e8'.
[2023-01-11T19:58:10.620Z] Executed 'StartUploadDocuments' (Succeeded, Id=f158ac3e-fa39-403c-9671-307ea54d5948, Duration=154ms)
[2023-01-11T19:58:13.952Z] Host lock lease acquired by instance ID '0000000000000000000000004906C298'.

最佳答案

尝试在 Azure 函数应用程序的 host.json 文件中更改 Durable hub 的名称,即 "hubName": "DurableHub",

"durableTask": {
"hubName": "DurableHub", // Change to your xyzhubname
"storageProvider": {
"connectionStringName": "ConnectionString"
}

关于azure - Orchestrator 功能 'XYZ' 失败 : The function 'XYZ' doesn't exist, 已禁用,或者不是 Orchestrator 功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75088546/

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