Updated on 2022-11-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:

  private static void getJobStatus(GesClient client, String graphId, String jobId) throws GesSdkException
    {
        JobResp jobsResp = client.queryJobStats(graphId, jobId);
        System.out.println(jobsResp);
    }

Asynchronous APIs that are used to stop, start, restore, and delete graphs, as well as create backups will return job IDs after commands are sent. You can query the job execution status according to the job IDs.