code: TaskStatus getTaskStatus(TaskAttemptID taskid) {
      TaskInProgress tip = getTip(taskid.getTaskID());
      return (tip == null ? null
              : tip.getTaskStatus(taskid));
    }
docs: Returns the TaskStatus for a particular taskid.