code: func (s *Scheduler) persistControllerJob(job *ct.Job) {
  	if s.isLeader == nil || *s.isLeader {
  		s.controllerPersist <- job
  	}
  }
docs: // persistControllerJob triggers the ControllerPersistLoop goroutine to persist
  // the job to the controller, but only if the scheduler either doesn't know the
  // current leader (e.g. if this is the first scheduler to start) or it itself
  // is the current leader to avoid states jumping back and forward in the
  // database