Documentation Home
HeatWave User Guide
Related Documentation Download this Manual
PDF (US Ltr) - 2.5Mb
PDF (A4) - 2.5Mb


2.6.4.6 Viewing Status of Multiple Tasks

This topic describes how to retrieve the paginated list of statuses for all tasks of a given task type.

Before You Begin

Ensure that you have the required roles.

Viewing Task Status Based on the Task Type

To view the paginated list of statuses for all tasks of a given task type. use the task_status_list function.

Press CTRL+C to copy
mysql> SELECT mysql_tasks.task_status_list('task_type', offset, limit);

Replace the following:

  • task_type: filters the task statuses based on a specific task type. If the value is NULL, status information for all tasks is included.

  • offset: the number of rows to skip. The offset value is used for pagination.

  • limit: the maximum number of task records included in the task status list.

For example:

Press CTRL+C to copy
mysql> SELECT mysql_tasks.task_status_list('Async_SQL', 5, 5)\G

This example returns task status information of all asynchronous tasks with task type Async_SQL.