Skip to content

DurableTaskAttemptCancellationReason

enum

Namespace: Orleans.Durable.Tasks

Identifies why a host canceled an attempt of a durable task.
[Orleans.Alias(Orleans.Durable.Tasks.DurableTaskAttemptCancellationReason)]
public enum DurableTaskAttemptCancellationReason

Fields

NameValueDescription
ActivationStopping0The grain activation which runs the attempt is stopping. The task replays in its next activation.
TaskAborted1The task was administratively aborted, and its outcome is a DurableTaskAbortedException.
TaskDeleted2The task was deleted together with its execution tree.
UnsupportedVersion3The task's execution recorded a version of a change which the running code doesn't support. The task stays pending until code which supports the version replays it; the DurableTaskAttemptCanceledException's inner exception is a DurableTaskVersionException.
Diverged4The attempt diverged from what an earlier attempt of the task recorded: it requested another operation under a recorded identifier, or a recorded outcome no longer decodes. The task stays pending until code which replays the recorded execution runs it; the DurableTaskAttemptCanceledException's inner exception describes the divergence.