code: public JobState getState() {
      if (this.completed) {
        if (this.successful) {
          return JobState.SUCCEEDED;
        } else {
          return JobState.FAILED;
        }
      } else {
        return JobState.RUNNING;
      }
      // return JobState.ofInt(this.status.getRunState());
    }
docs: Get the running status of the Job (@see {@link JobStatus}).
  
  @return