Cancel an asynchronous task.
Notice
- You must specify the
job_idwhen executingCANCEL JOB. - Running tasks will be terminated, and tasks that have not started will not run.
- For a task that has already finished running, executing
cancel jobwill report theERROR 4018 (HY000): Entry not existerror. - You can still view the job status after canceling it.
Syntax
CANCEL JOB 'job_id';
Examples
obclient> CANCEL JOB '2010011125899906847397';
3 rows in set (0.00 sec)