# CancellationReason

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Enums](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.CancellationReason/

Cancellation reason enumerations.

- **Full name:** `MFiles.CancellationReason`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-CANCELLATION_REASON_NONE"></a>`CANCELLATION_REASON_NONE` | 0 | None. |
| <a id="v-CANCELLATION_REASON_AUTO_CANCEL"></a>`CANCELLATION_REASON_AUTO_CANCEL` | 1 | Auto-cancel. |
| <a id="v-CANCELLATION_REASON_MANUAL_CANCEL"></a>`CANCELLATION_REASON_MANUAL_CANCEL` | 2 | Cancelled by an administrator, progress kept. |
| <a id="v-CANCELLATION_REASON_SHUTDOWN"></a>`CANCELLATION_REASON_SHUTDOWN` | 3 | Interrupted by an orderly service stop or vault offline. |
| <a id="v-CANCELLATION_REASON_HARD_ERROR"></a>`CANCELLATION_REASON_HARD_ERROR` | 4 | The run failed with an error. |
| <a id="v-CANCELLATION_REASON_RUN_IN_PROGRESS"></a>`CANCELLATION_REASON_RUN_IN_PROGRESS` | 5 | A run started and has not been closed (abandoned if no run is active). |
| <a id="v-CANCELLATION_REASON_PROGRESS_DISCARDED"></a>`CANCELLATION_REASON_PROGRESS_DISCARDED` | 6 | An administrator discarded the progress. |

<a id="used-in-fields"></a>

## Used in fields

- [`OptimizeVaultJobOutputInfo.cancellation_reason`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OptimizeVaultJobOutputInfo/index.md#f-cancellation_reason): Reason for cancellation.
