code: func (job *AnalyzeJob) Finish(meetError bool) {
  	now := time.Now()
  	job.Mutex.Lock()
  	if meetError {
  		job.State = failed
  	} else {
  		job.State = finished
  	}
  	job.updateTime = now
  	job.Mutex.Unlock()
  }
docs: // Finish update the status of analyze job to finished or failed according to `meetError`.