# ApplicationTaskState

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.ApplicationTaskState/

The states the application task can be in.

- **Full name:** `MFiles.ApplicationTaskState`
- **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-APPLICATION_TASK_STATE_WAITING"></a>`APPLICATION_TASK_STATE_WAITING` | 0 | Task is waiting for processing in queue. |
| <a id="v-APPLICATION_TASK_STATE_IN_PROGRESS"></a>`APPLICATION_TASK_STATE_IN_PROGRESS` | 1 | Task is being processed at the moment. |
| <a id="v-APPLICATION_TASK_STATE_COMPLETED"></a>`APPLICATION_TASK_STATE_COMPLETED` | 2 | Task processing has completed. |
| <a id="v-APPLICATION_TASK_STATE_FAILED"></a>`APPLICATION_TASK_STATE_FAILED` | 3 | Task has failed. |
| <a id="v-APPLICATION_TASK_STATE_CANCELED"></a>`APPLICATION_TASK_STATE_CANCELED` | 4 | Task was canceled. |
| <a id="v-APPLICATION_TASK_STATE_NONE"></a>`APPLICATION_TASK_STATE_NONE` | 5 | State is not relevant for the task. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCApplicationTaskQueue.UpdateTask](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCApplicationTaskQueue/UpdateTask/index.md): Reports the progress or the final state of a task.

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

## Used in fields

- [`ApplicationTaskInfo.state`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ApplicationTaskInfo/index.md#f-state): Current state of this task.
- [`UpdateTaskRequest.state`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCApplicationTaskQueue/UpdateTask/index.md#request): The new state of the task.
