Used to cancel an asynchronous task.
Notice
- To execute the
CANCEL JOBstatement, you must specify thejob_idparameter. - Running tasks are terminated, and tasks that have not started are not executed.
- For tasks that have already completed, executing the
CANCEL JOBstatement returns theERROR 4018 (HY000): Entry not existerror. - After a task is canceled, you can still view the job status.
Syntax
CANCEL JOB 'job_id';
Examples
obclient> CANCEL JOB '2010011125899906847397';
3 rows in set (0.00 sec)
