Skip to content

DurableTaskReference<TResult>.GetStatusAsync(PollingOptions, CancellationToken)

GetStatusAsync(PollingOptions, CancellationToken)

View source
public Task<DurableTaskStatus> GetStatusAsync(PollingOptions options = default(PollingOptions), CancellationToken cancellationToken = default(CancellationToken))
Polls the task and returns its current status.

Parameters

optionsPollingOptions
The options of the poll.
cancellationTokenCancellationToken
A token which abandons the poll.

Exceptions

Orleans.Durable.Tasks.DurableTaskNotFoundException
The grain retains no task with this identifier.