> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# QueuedTask

> Describes a long-running job of the tenant, such as an import, an export or a folder delete. Read it with
`queuedTaskById` until `status` is `COMPLETED`, `FAILED` or `CANCELLED`; `configuration`, `state` and
`details` hold what is specific to its `type`.



**Kind**: `object`

## Implements

- `Task`

## Fields

**`artifacts`**: `[QueuedTaskArtifact!]!`

The files this task wrote or is writing.

---

**`awaitingConfirmation`**: `Boolean!`

True while the task is prepared and waits for confirmQueuedTask before it writes anything.

---

**`configuration`**: `TaskConfiguration!`

The choices the task was queued with.

---

**`createdAt`**: `DateTime!`

When the task was queued (UTC).

---

**`createdBy`**: `UUID!`

Who queued the task.

---

**`details`**: `TaskDetails!`

What the task was queued to do and how it is going, in one place.

---

**`expiresAt`**: `DateTime!`

When the task and the files it wrote stop being kept.

---

**`id`**: `ID!`

Global id of the task. `queuedTaskById`, `cancelQueuedTask`, `retryQueuedTask` and `confirmQueuedTask` take it. The `id` filter in `queuedTasks(where:)` takes the raw UUID.

---

**`lastUpdatedAt`**: `DateTime!`

When the task last changed (UTC), such as a new status or progress.

---

**`progress`**: `Float`

Percentage complete, or null while the total is still unknown.

---

**`state`**: `TaskState!`

What the task reports about itself while it runs and once it is done.

---

**`status`**: `TaskStatus!`

Where the task is in its lifecycle.

---

**`tenantId`**: `ID!`

Global id of the tenant that owns the task.

---

**`type`**: `TaskType!`

Which kind of work the task carries out.



This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.