# OptimizeVaultJobOutputInfo

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) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

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

Struct for the output info of a job of archiving whole documents.

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

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-cancellation_reason"></a>`cancellation_reason` | [`CancellationReason`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.CancellationReason/index.md) | 1 | Reason for cancellation. Values: `CANCELLATION_REASON_NONE` (0), `CANCELLATION_REASON_AUTO_CANCEL` (1), `CANCELLATION_REASON_MANUAL_CANCEL` (2), `CANCELLATION_REASON_SHUTDOWN` (3), `CANCELLATION_REASON_HARD_ERROR` (4), `CANCELLATION_REASON_RUN_IN_PROGRESS` (5), `CANCELLATION_REASON_PROGRESS_DISCARDED` (6). |
| <a id="f-interruption_step"></a>`interruption_step` | `int32` | 2 | Step that lConsecutiveInterruptions refers to, -1 if none. |
| <a id="f-consecutive_interruptions"></a>`consecutive_interruptions` | `int32` | 3 | Consecutive crashes or errors at that step. |
| <a id="f-needs_attention"></a>`needs_attention` | `bool` | 4 | True if the job is paused until an administrator resolves it. |
| <a id="f-interruption_reason"></a>`interruption_reason` | `string` | 5 | Failure reason of the last crash or error (if any). |
| <a id="f-completed_indexes"></a>`completed_indexes` | repeated [`OptimizeVaultIndexKey`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OptimizeVaultIndexKey/index.md) | 6 | Indexes that the run has defragmented (a set; order has no meaning). |

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

## Used in fields

- [`JobOutputInfoDataUnion.optimize_vault`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.JobOutputInfoDataUnion/index.md#f-optimize_vault): Output info for vault optimization job.
