code: public static String getJobRunState(int state) {
      if (state < 1 || state >= runStates.length) {
        return UNKNOWN;
      }
      return runStates[state];
    }
docs: Helper method to get human-readable state of the job.
  @param state job state
  @return human-readable state of the job