code: public void changeState(String jobName) throws MangooSchedulerException {
          Objects.requireNonNull(this.quartzScheduler, Required.SCHEDULER.toString());
          
          try {
              for (JobKey jobKey : getAllJobKeys()) {
                  if (jobKey.getName().equalsIgnoreCase(jobName)) {
                      TriggerState triggerState = getTriggerState(jobKey);
                      if (TriggerState.NORMAL == triggerState) {
                          this.quartzScheduler.pauseJob(jobKey);                        
                      } else {
                          this.quartzScheduler.resumeJob(jobKey);
                      }
                  }
              }            
          } catch (SchedulerException | MangooSchedulerException e) {
              throw new MangooSchedulerException(e);
          }
      }
docs: Changes the state of a normally running job from pause to resume or resume to pause
  
  @param jobName The name of the job
  @throws MangooSchedulerException if an error occurs during access to the quartz scheduler