MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.47k forks source link

durable functions event publishing to Event Grid - runtime status confusion #124434

Open He-Wolf opened 1 month ago

He-Wolf commented 1 month ago

The possible values of runtime status is lited here: https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-event-publishing?tabs=csharp-script#event-schema

In the subject part, it is said that the runtime status can be: Running, Completed, Failed, and Terminated. But in the data.runtimeStatus section it is said that runtime status can be: Running, Completed, Failed and Canceled.

My question is if we will get Terminated, Canceled or both of these values depending on the property?

ManoharLakkoju-MSFT commented 1 month ago

@He-Wolf Thanks for your feedback! We will investigate and update as appropriate.

He-Wolf commented 1 month ago

I found another documentation page where the durable function runtime state values are a bit different: https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-instance-management?tabs=javascript#query-instances

PesalaPavan commented 1 month ago

@He-Wolf Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.