Discovering the Durable Functions API - Retrieving the orchestration status (DurableOrchestrationClient part 2)
DurableOrchestrationClient(Base) class - Retrieving status
This post is the second part of a series of blogs/vlogs to discover the Durable Functions API.
In the video linked below, I'm looking into the functionality from the DurableOrchestrationClient
(Base
) class, which can be used to retrieve the status of orchestration instances.
These are the methods to retrieve the status of one orchestration and return a DurableOrchestrationStatus
object:
GetStatusAsync(string instanceId)
GetStatusAsync(string instanceId, bool showHistory);
GetStatusAsync(string instanceId, bool showHistory, bool showHistoryOutput, bool showInput = true);
These are the methods to retrieve the status for multiple orchestrations and they return an IList<DurableOrchestrationStatus>
:
GetStatusAsync(CancellationToken cancellationToken = default(CancellationToken));
GetStatusAsync(DateTime createdTimeFrom, DateTime? createdTimeTo, IEnumerable<OrchestrationRuntimeStatus> runtimeStatus, CancellationToken cancellationToken = default(CancellationToken));
Here's the video, please give it a thumbs up if you like it and subscribe to my channel if you haven't done so already:
Resources
- GitHub repo: github.com/marcduiker/demos-azure-durable-functions.
- Microsoft docs: Durable Functions HTTP API.
Links to other posts in this series
- Starting Orchestrations (DurableOrchestrationClient Part 1)
- Retrieving the Orchestration Status (DurableOrchestrationClient Part 2)
- Purge & Terminate Orchestrations (DurableOrchestrationClient Part 3)