This topic describes how to retrieve the paginated list of statuses for all tasks of a given task type.
Ensure that you have the required roles.
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 copymysql> 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 isNULL
, 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 copymysql> 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
.