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


2.6.4.7 Killing a Task

This topic describes how to terminate an active or scheduled task using its task ID or alias. Users can only terminate tasks they own.

Before You Begin

Ensure that you have the required roles.

Killing an Asynchronous Task

To kill an asynchronous task, use the kill_task stored procedure.

Press CTRL+C to copy
mysql> CALL mysql_tasks.kill_task('task_id');

Replace the task_id with the unique task ID (UUID) of the task to be terminated.

For example:

Press CTRL+C to copy
mysql> CALL mysql_tasks.kill_task('d3cdc916-3b83-11f0-a5dc-02001712c792');

This example kills the active task with task id d3cdc916-3b83-11f0-a5dc-02001712c792.