use of com.baidu.hugegraph.computer.driver.DefaultJobState in project hugegraph-computer by hugegraph.
the class KubernetesDriver method buildJobState.
private JobState buildJobState(HugeGraphComputerJob computerJob) {
E.checkNotNull(computerJob, "computerJob");
ComputerJobStatus status = computerJob.getStatus();
if (status == null || status.getJobStatus() == null) {
return new DefaultJobState().jobStatus(JobStatus.INITIALIZING);
}
JobStatus jobStatus = JobStatus.valueOf(status.getJobStatus());
return new DefaultJobState().jobStatus(jobStatus);
}
Aggregations