code: func (e *engineImpl) setJobPausedFlag(c context.Context, job *Job, paused bool, who identity.Identity) error {
  	return e.jobTxn(c, job.JobID, func(c context.Context, job *Job, isNew bool) error {
  		switch {
  		case isNew || !job.Enabled:
  			return ErrNoSuchJob
  		case job.Paused == paused:
  			return errSkipPut
  		}
  
  		if paused {
  			logging.Warningf(c, "Job is paused by %s", who)
  		} else {
  			logging.Warningf(c, "Job is resumed by %s", who)
  		}
  		job.Paused = paused
  
  		// Reschedule the tick if necessary.
  		err := pokeCron(c, job, e.cfg.Dispatcher, func(m *cron.Machine) error {
  			m.OnScheduleChange()
  			return nil
  		})
  		if err != nil {
  			return err
  		}
  
  		// If paused, kick the triage to clear the pending triggers. We can pop them
  		// only from within the triage procedure.
  		if job.Paused {
  			return e.kickTriageLater(c, job.JobID, 0)
  		}
  		return nil
  	})
  }
docs: // setJobPausedFlag is implementation of PauseJob/ResumeJob.
  //
  // Doesn't check ACLs, assumes the check was done already.