# DurableTaskAttemptCancellationReason

Package: [Microsoft.Orleans.Durable.Abstractions](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/) 10.0.0-alpha.1

```csharp
[Orleans.Alias(Orleans.Durable.Tasks.DurableTaskAttemptCancellationReason)]
public enum DurableTaskAttemptCancellationReason
```

Identifies why a host canceled an attempt of a durable task.

## Fields

- `ActivationStopping` = `0` - The grain activation which runs the attempt is stopping. The task replays in its next activation.
- `TaskAborted` = `1` - The task was administratively aborted, and its outcome is a DurableTaskAbortedException.
- `TaskDeleted` = `2` - The task was deleted together with its execution tree.
- `UnsupportedVersion` = `3` - The 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.
- `Diverged` = `4` - The 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.
