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 viewstasks and task_runs in Information Schema.
task_name of materialized view refresh tasks by using the SHOW MATERIALIZED VIEWS statement.
Examples
- If the
IF EXISTSparameter is not specified, dropping a non-existing tasktest_taskwill result in an error.
- If the
IF EXISTSparameter is specified, dropping a non-existingtest_taskwill not result in an error.