code: func MoveToHistory(job *AnalyzeJob) {
  	analyzeStatus.Lock()
  	delete(analyzeStatus.jobs, job)
  	analyzeStatus.history = append(analyzeStatus.history, job)
  	numJobs := len(analyzeStatus.history)
  	if numJobs > numMaxHistoryJobs {
  		analyzeStatus.history = analyzeStatus.history[numJobs-numMaxHistoryJobs:]
  	}
  	analyzeStatus.Unlock()
  }
docs: // MoveToHistory moves the analyze job to history.