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

Querying Job Status

You can use a specific API provided by GES to query job status. The sample code is as follows:

  public static void queryAsyncTask(GraphClient graphClient,String jobId) throws ApiException
{
VertexQueryJobReq req = new VertexQueryJobReq();
//Set the pagination query parameters. The default value of offset is 0, and the default value of limit is 100000.
req.setOffset(0); 
req.setLimit(100); 
req.setJobId(jobId); 
JobResp<QueryData<VertexQueryResult>> resp = graphClient.queryJobStatus(req);
System.out.println(resp);
}

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 query the execution status of each job.