【问题标题】:Is there a way to view the status of a Durable Function Sub Orchestration?有没有办法查看 Durable Function Sub Orchestration 的状态?
【发布时间】:2020-01-09 21:14:57
【问题描述】:

我正在尝试找到一种使用 statusQueryGetUri 查看子编排状态的方法。

目前我只能看到调用子编排时设置的自定义状态,但也希望能够查看子编排中的活动状态。

可能吗?

【问题讨论】:

    标签: azure-functions orchestration azure-durable-functions


    【解决方案1】:

    您可以通过多种方式检索编排的状态。

    1. Azure Function 核心工具 - 示例

    func durable get-instances --created-after 2019-09-7T13:57:31Z --created-before 2019-09-10T23:59Z --top 15

    更多信息:Docs

    另一种方法是使用此 API(用于 func V2 运行时)

    GET /runtime/webhooks/durableTask/instances?
    taskHub={taskHub}
    &connection={connectionName}
    &code={systemKey}
    &createdTimeFrom={timestamp}
    &createdTimeTo={timestamp}
    &runtimeStatus={runtimeStatus1,runtimeStatus2,...}
    &showInput=[true|false]
    &top={integer}
    
    1. 有关 HTTP API 的更多信息 - Docs

    【讨论】:

      【解决方案2】:

      Durable Functions Monitor 现在原生支持从父编排的详细信息页面导航到子编排(这些链接是可点击的):

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2021-04-19
        • 2013-08-22
        • 1970-01-01
        • 1970-01-01
        • 2012-01-02
        • 1970-01-01
        • 2021-06-20
        相关资源
        最近更新 更多