Skip to main content
Version: 3.5

task_runs

task_runs provides information about the execution of asynchronous tasks.

The following fields are provided in task_runs:

FieldDescription
QUERY_IDID of the query.
TASK_NAMEName of the task.
CREATE_TIMETime when the task was created.
FINISH_TIMETime when the task finished.
STATEState of the task. Valid values: PENDING, RUNNING, FAILED, and SUCCESS. From v3.1.12, a new state MERGED is added especially 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.
DATABASEDatabase where the task belongs.
DEFINITIONSQL definition of the task.
EXPIRE_TIMETime when the task expires.
ERROR_CODEError code of the task.
ERROR_MESSAGEError message of the task.
PROGRESSThe progress of the task.
EXTRA_MESSAGEExtra message for the task, for example, the partition information in an asynchronous materialized view creation task.

A task run record is produced by either SUBMIT TASK or CREATE MATRIALIZED VIEW.

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.

StarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.