On this page

Show all

Canceling a Job

Updated on 2022-09-14 GMT+08:00

You can use a specific API provided by GES to cancel a job. Sample code is as follows:

public static void stopAsyncJob(GraphClient graphClient,String jobId) throws ApiException
{
    Map result = graphClient.deleteJob(jobId);
    //Output the result in a specific format using the MapUtils tool class.
    System.out.print(MapUtils.map2json(result));
}
NOTE:

After asynchronous APIs such as those for querying vertices and edges or executing algorithms are used, job IDs are returned. You can use the job ID to cancel the job.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback