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

# task_runs

> task_runs provides information about the execution of asynchronous tasks.

`task_runs` provides information about the execution of asynchronous tasks.

The following fields are provided in `task_runs`:

| **Field** | **Description** |
| - | - |
| QUERY\_ID | ID of the query. |
| TASK\_NAME | Name of the task. |
| CREATE\_TIME | Time when the task was created. |
| FINISH\_TIME | Time when the task finished. |
| STATE | State of the task. Valid values: `PENDING`, `RUNNING`, `FAILED`, `SUCCESS`, `MERGED`, and `SKIPPED`. `MERGED` is for materialized view refresh tasks. When a new refresh task is submitted and the old task is still in the pending queue, these tasks will be merged and their priority level will be maintained. `SKIPPED` is for materialized view refresh tasks. When no data changes are detected on the base table partition, the refresh for the corresponding materialized view partition is skipped. |
| CATALOG | Catalog where the task belongs. |
| DATABASE | Database where the task belongs. |
| DEFINITION | SQL definition of the task. |
| EXPIRE\_TIME | Time when the task expires. |
| ERROR\_CODE | Error code of the task. |
| ERROR\_MESSAGE | Error message of the task. |
| PROGRESS | The progress of the task. |
| EXTRA\_MESSAGE | Extra message for the task, for example, the partition information in an asynchronous materialized view creation task. |
| PROPERTIES | Properties of the task. |
| JOB\_ID | Job ID of the task. |
| PROCESS\_TIME | Process time of the task. |
| TASK\_SOURCE | Source that submitted the task. Valid values: `CTAS`, `MV`, `INSERT`, `PIPE`, and `DATACACHE_SELECT`. `UNKNOWN` is returned for legacy records whose source was not recorded. |

A task run record is produced by either [SUBMIT TASK](/documents/4.2/sql-reference/sql-statements/loading_unloading/ETL/SUBMIT_TASK.md) or [CREATE MATRIALIZED VIEW](/documents/4.2/sql-reference/sql-statements/materialized_view/CREATE_MATERIALIZED_VIEW.md).

**Note**

A materialized view operation may generate multi task runs, and each task run represents a refresh sub-task which is split in accordance with the `partition_refresh_number` configuration.

## `EXTRA_MESSAGE`

For a materialized view task run, `EXTRA_MESSAGE` field will contain the materialized view task run's detail messages, you can find more details in [materialized\_view\_task\_run\_details](/documents/4.2/using_starrocks/async_mv/materialized_view_task_run_details.md).


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