Azure-functions-durable-extension: Status "Succeeded" on Application Insights when orchestrator failed

Created on 27 Aug 2018  路  4Comments  路  Source: Azure/azure-functions-durable-extension

If the Activity fails, runtimeStatus will be Failed, but on Application Insights it will succeed.

Status query result

{
  "instanceId": "5ad6d773dc3a42a1b74dc89bc5f1097a",
  "runtimeStatus": "Failed",
  "input": {},
  "customStatus": null,
  "output": "***",
  "createdTime": "2018-08-27T07:25:33Z",
  "lastUpdatedTime": "2018-08-27T07:25:34Z"
}

Application Insights

image

Runtime

  • Azure Functions v2
  • Microsoft.Azure.WebJobs.Extensions.DurableTask = 1.5.0
Needs dtfx

All 4 comments

Thanks for this information. We'll look into this.

By implementing TaskOrchestrationDispatcher, It always return CompletedTask even if the orchestrator fails. Azure Functions Host treats it as successful.

https://github.com/Azure/durabletask/blob/f9cc450539b5e37c97c19ae393d5bb1564fda7a8/src/DurableTask.Core/TaskOrchestrationDispatcher.cs#L400

@shibayan Interesting. Thanks for pointing that out. I will investigate this further to see if we can return something different here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cgillum picture cgillum  路  4Comments

YodasMyDad picture YodasMyDad  路  3Comments

SayusiAndo picture SayusiAndo  路  3Comments

mark-szabo picture mark-szabo  路  3Comments

tommasobertoni picture tommasobertoni  路  3Comments