# ApplicationTaskInfo

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

ApplicationTaskInfo class

- **Full name:** `MFiles.ApplicationTaskInfo`
- **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-queue_id"></a>`queue_id` | `string` | 1 | ID of the task queue this task belongs to. |
| <a id="f-task_id"></a>`task_id` | `string` | 2 | ID of this task. |
| <a id="f-state"></a>`state` | [`ApplicationTaskState`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ApplicationTaskState/index.md) | 3 | Current state of this task. Values: `APPLICATION_TASK_STATE_WAITING` (0), `APPLICATION_TASK_STATE_IN_PROGRESS` (1), `APPLICATION_TASK_STATE_COMPLETED` (2), `APPLICATION_TASK_STATE_FAILED` (3), `APPLICATION_TASK_STATE_CANCELED` (4), `APPLICATION_TASK_STATE_NONE` (5). |
| <a id="f-progress"></a>`progress` | `string` | 4 | Current task specific progress amount. |
| <a id="f-task_type"></a>`task_type` | `string` | 5 | Defines the task type. |
| <a id="f-task_data"></a>`task_data` | `bytes` | 6 | Any type specific task payload data. |
| <a id="f-activation_timestamp"></a>`activation_timestamp` | [`google.protobuf.Timestamp`](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp) | 7 | The earliest time this task can be reserved for processing. |
| <a id="f-latest_activity_timestamp"></a>`latest_activity_timestamp` | [`google.protobuf.Timestamp`](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp) | 8 | The last modified timestamp. |

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

## Used by methods

- [IRPCApplicationTaskQueue.GetApplicationTasks](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCApplicationTaskQueue/GetApplicationTasks/index.md): Gets tasks by ID without reserving them.
- [IRPCApplicationTaskQueue.ReserveTasksForProcessing](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCApplicationTaskQueue/ReserveTasksForProcessing/index.md): Reserves the next waiting task from each of the given queues for the caller to process.

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

## Used in fields

- [`ReserveTasksForProcessingResponse.task_info_collection`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCApplicationTaskQueue/ReserveTasksForProcessing/index.md#response): The reserved tasks, at most one per queue.
- [`GetApplicationTasksResponse.task_info_collection`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCApplicationTaskQueue/GetApplicationTasks/index.md#response): The tasks that still exist.
