DurableOrchestrationClient.GetStatusAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| GetStatusAsync(CancellationToken) |
Gets all the status of the orchestration instances. |
| GetStatusAsync(DateTime, Nullable<DateTime>, IEnumerable<OrchestrationRuntimeStatus>, CancellationToken) |
Gets the status of all orchestration instances that match the specified conditions. |
| GetStatusAsync(String, Boolean, Boolean, Boolean) |
Gets the status of the specified orchestration instance. |
| GetStatusAsync(DateTime, Nullable<DateTime>, IEnumerable<OrchestrationRuntimeStatus>, Int32, String, CancellationToken) |
Gets the status of all orchestration instances with paging that match the specified conditions. |
GetStatusAsync(CancellationToken)
Gets all the status of the orchestration instances.
public override System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.WebJobs.DurableOrchestrationStatus>> GetStatusAsync(System.Threading.CancellationToken cancellationToken = default);
override this.GetStatusAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.WebJobs.DurableOrchestrationStatus>>
Public Overrides Function GetStatusAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of DurableOrchestrationStatus))
Parameters
- cancellationToken
- System.Threading.CancellationToken
Cancellation token that can be used to cancel the status query operation.
Returns
Returns orchestration status for all instances.
Applies to
GetStatusAsync(DateTime, Nullable<DateTime>, IEnumerable<OrchestrationRuntimeStatus>, CancellationToken)
Gets the status of all orchestration instances that match the specified conditions.
public override System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.WebJobs.DurableOrchestrationStatus>> GetStatusAsync(DateTime createdTimeFrom, DateTime? createdTimeTo, System.Collections.Generic.IEnumerable<Microsoft.Azure.WebJobs.OrchestrationRuntimeStatus> runtimeStatus, System.Threading.CancellationToken cancellationToken = default);
override this.GetStatusAsync : DateTime * Nullable<DateTime> * seq<Microsoft.Azure.WebJobs.OrchestrationRuntimeStatus> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.WebJobs.DurableOrchestrationStatus>>
Public Overrides Function GetStatusAsync (createdTimeFrom As DateTime, createdTimeTo As Nullable(Of DateTime), runtimeStatus As IEnumerable(Of OrchestrationRuntimeStatus), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of DurableOrchestrationStatus))
Parameters
- createdTimeFrom
- System.DateTime
Return orchestration instances which were created after this DateTime.
- createdTimeTo
- System.Nullable<System.DateTime>
Return orchestration instances which were created before this DateTime.
- runtimeStatus
- System.Collections.Generic.IEnumerable<OrchestrationRuntimeStatus>
Return orchestration instances which matches the runtimeStatus.
- cancellationToken
- System.Threading.CancellationToken
Cancellation token that can be used to cancel the status query operation.
Returns
Returns orchestration status for all instances.
Applies to
GetStatusAsync(String, Boolean, Boolean, Boolean)
Gets the status of the specified orchestration instance.
public override System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.DurableOrchestrationStatus> GetStatusAsync(string instanceId, bool showHistory = false, bool showHistoryOutput = false, bool showInput = true);
override this.GetStatusAsync : string * bool * bool * bool -> System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.DurableOrchestrationStatus>
Public Overrides Function GetStatusAsync (instanceId As String, Optional showHistory As Boolean = false, Optional showHistoryOutput As Boolean = false, Optional showInput As Boolean = true) As Task(Of DurableOrchestrationStatus)
Parameters
- instanceId
- System.String
The ID of the orchestration instance to query.
- showHistory
- System.Boolean
Boolean marker for including execution history in the response.
- showHistoryOutput
- System.Boolean
Boolean marker for including input and output in the execution history response.
- showInput
- System.Boolean
If set, fetch and return the input for the orchestration instance.
Returns
Returns a task which completes when the status has been fetched.
Applies to
GetStatusAsync(DateTime, Nullable<DateTime>, IEnumerable<OrchestrationRuntimeStatus>, Int32, String, CancellationToken)
Gets the status of all orchestration instances with paging that match the specified conditions.
public override System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.OrchestrationStatusQueryResult> GetStatusAsync(DateTime createdTimeFrom, DateTime? createdTimeTo, System.Collections.Generic.IEnumerable<Microsoft.Azure.WebJobs.OrchestrationRuntimeStatus> runtimeStatus, int pageSize, string continuationToken, System.Threading.CancellationToken cancellationToken = default);
override this.GetStatusAsync : DateTime * Nullable<DateTime> * seq<Microsoft.Azure.WebJobs.OrchestrationRuntimeStatus> * int * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.OrchestrationStatusQueryResult>
Public Overrides Function GetStatusAsync (createdTimeFrom As DateTime, createdTimeTo As Nullable(Of DateTime), runtimeStatus As IEnumerable(Of OrchestrationRuntimeStatus), pageSize As Integer, continuationToken As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of OrchestrationStatusQueryResult)
Parameters
- createdTimeFrom
- System.DateTime
Return orchestration instances which were created after this DateTime.
- createdTimeTo
- System.Nullable<System.DateTime>
Return orchestration instances which were created before this DateTime.
- runtimeStatus
- System.Collections.Generic.IEnumerable<OrchestrationRuntimeStatus>
Return orchestration instances which matches the runtimeStatus.
- pageSize
- System.Int32
Number of records per one request.
- continuationToken
- System.String
ContinuationToken of the pager.
- cancellationToken
- System.Threading.CancellationToken
Cancellation token that can be used to cancel the status query operation.
Returns
Returns each page of orchestration status for all instances and continuation token of next page.