code: private boolean isScheduled(JobInProgress job) {
      return ((job.pendingMaps() < job.desiredMaps()) 
          || (job.pendingReduces() < job.desiredReduces()));
    }
docs: Convenience method to check if job has been scheduled or not.
  
  The method may return false in case of job which has failure but
  has not failed the tip.
  @param job
  @return