code: synchronized void statusUpdate(TaskStatus status) {
      setProgress(status.getProgress());
      this.runState = status.getRunState();
      this.stateString = status.getStateString();
      this.nextRecordRange = status.getNextRecordRange();
  
      setDiagnosticInfo(status.getDiagnosticInfo());
      
      if (status.getStartTime() > 0) {
        this.startTime = status.getStartTime(); 
      }
      if (status.getFinishTime() > 0) {
        setFinishTime(status.getFinishTime()); 
      }
      
      this.phase = status.getPhase();
      this.counters = status.getCounters();
      this.outputSize = status.outputSize;
    }
docs: Update the status of the task.
  
  @param status updated status