OrchestrationTrigger持久功能:使用Azure Function应用程序消耗等待输入和执行时间

时间:2019-08-18 18:34:43

标签: azure azure-functions

我遇到了以下链接,并有疑问:

https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-checkpointing-and-replay

1当调用OrchestrationTrigger持久函数并且由于某些原因而崩溃(例如,在最大超时持续时间为10分钟之后)时,将从下面的输入names从表存储或队列中自动读取。

[FunctionName("E1_HelloSequence")]
public static async Task<List<string>> Run(
    [OrchestrationTrigger] DurableOrchestrationContext context)
{
    var names= ctx.GetInput<List<string>>();

    var outputs = new List<string>();

    outputs.Add(await context.CallActivityAsync<string>("E1_SayHello", names[0]));
    outputs.Add(await context.CallActivityAsync<string>("E1_SayHello", names[1]));
    // returns ["Hello Tokyo!", "Hello Seattle!"]
    return outputs;
}

2崩溃后,它将自动重新启动。

3在每次等待时,该功能都转换为等待状态,等待时间是否占最大超时持续时间的一部分?

1 个答案:

答案 0 :(得分:1)

您好,来自功能产品小组的克里斯(Chris)已通过GitHub Thread与您联系。 将其张贴在这里,以便对其他成员也有利。

1)是,将从表存储中读取任何已执行活动功能的结果。

2)是,该功能将自动重试。现有的队列消息可确保这一点。

3)不,等待所花费的时间不计入最大功能超时。你也不是    计费等待时间。

相关问题