code: func (e *engineImpl) GetJobTriageLog(c context.Context, job *Job) (*JobTriageLog, error) {
  	log := JobTriageLog{JobID: job.JobID}
  	switch err := ds.Get(c, &log); {
  	case err == ds.ErrNoSuchEntity:
  		return nil, nil
  	case err != nil:
  		return nil, transient.Tag.Apply(err)
  	}
  
  	// We assume the log is stale if the latest triage transaction has landed
  	// sufficiently log time ago, but JobTriageLog is still old. 1 second here
  	// really means "we assume the log is stored no slower than 1 sec after the
  	// triage transaction lands". In practice the log is stored immediately after
  	// the transaction, so most of the time there should be no false positives
  	// (but they are still possible).
  	if !job.LastTriage.IsZero() && clock.Since(c, job.LastTriage) > time.Second {
  		log.stale = log.LastTriage.Before(job.LastTriage)
  	}
  
  	return &log, nil
  }
docs: // GetJobTriageLog returns a log from the latest job triage procedure.