Skip to main content
DROP TASK drops an asynchronous ETL task submitted using SUBMIT TASK. This feature has been supported since StarRocks v2.5.7.
NOTE Dropping a task with DROP TASK simultaneously cancels the corresponding TaskRun.

Syntax

Parameters

Usage notes

You can check the information of asynchronous tasks by querying the metadata views tasks and task_runs in Information Schema.
You can obtain the task_name of materialized view refresh tasks by using the SHOW MATERIALIZED VIEWS statement.

Examples

Drop a non-existing task
  • If the IF EXISTS parameter is not specified, dropping a non-existing task test_task will result in an error.
  • If the IF EXISTS parameter is specified, dropping a non-existing test_task will not result in an error.