cancelConsoleJob

Syntax

cancelConsoleJob(rootJobId)

Arguments

rootJobId is the job ID(s). It is a STRING scalar or vector. If it is a vector, multiple jobs are canceled at the same time.

Details

Cancel a submitted but unfinished interactive job. To cancel batch jobs, use cancelJob.

Please note that this command cancels the job only after the currently running sub tasks of the job are finished. Therefore the command may not immediately take effect. If a job has no sub task, this command will not take effect.

Examples

In a session of a data node, enter the following:

$ pt = loadTable("dfs://TAQ", `quotes)
$ select count(*) from pt;

In another session of the same data node, first use function getConsoleJobs to get the rootJobId of the job to be cancelled, then execute cancelConsoleJob with the rootJobId:

$ cancelConsoleJob("bf768327-776d-40a7-8a8d-00a6cfd054e3");