code: func (s *Scheduler) stopJobsWithMismatchedTags(formation *Formation) {
  	log := s.logger.New("fn", "stopJobsWithMismatchedTags")
  	for _, job := range s.jobs {
  		if !job.IsInFormation(formation.key()) || !job.IsRunning() {
  			continue
  		}
  		host, ok := s.hosts[job.HostID]
  		if !ok {
  			continue
  		}
  		if job.TagsMatchHost(host) {
  			continue
  		}
  		log.Info("job has mismatched tags, stopping", "job.id", job.ID, "job.tags", job.Tags(), "host.id", host.ID, "host.tags", host.Tags)
  		s.stopJob(job)
  	}
  }
docs: // stopJobsWithMismatchedTags stops any running jobs whose tags do not match
  // those of the host they are running on (possible after either the host's tags
  // or the formation's tags are updated)