code: @Override
      public void pauseTrigger(TriggerKey triggerKey, Jedis jedis) throws JobPersistenceException {
          final String triggerHashKey = redisSchema.triggerHashKey(triggerKey);
          Pipeline pipe = jedis.pipelined();
          Response<Boolean> exists = pipe.exists(triggerHashKey);
          Response<Double> completedScore = pipe.zscore(redisSchema.triggerStateKey(RedisTriggerState.COMPLETED), triggerHashKey);
          Response<String> nextFireTimeResponse = pipe.hget(triggerHashKey, TRIGGER_NEXT_FIRE_TIME);
          Response<Double> blockedScore = pipe.zscore(redisSchema.triggerStateKey(RedisTriggerState.BLOCKED), triggerHashKey);
          pipe.sync();
  
          if(!exists.get()){
              return;
          }
          if(completedScore.get() != null){
              // doesn't make sense to pause a completed trigger
              return;
          }
  
          final long nextFireTime = nextFireTimeResponse.get() == null
                  || nextFireTimeResponse.get().isEmpty() ? -1 : Long.parseLong(nextFireTimeResponse.get());
          if(blockedScore.get() != null){
              setTriggerState(RedisTriggerState.PAUSED_BLOCKED, (double) nextFireTime, triggerHashKey, jedis);
          }
          else{
              setTriggerState(RedisTriggerState.PAUSED, (double) nextFireTime, triggerHashKey, jedis);
          }
      }
docs: Pause the trigger with the given key
  @param triggerKey the key of the trigger to be paused
  @param jedis a thread-safe Redis connection
  @throws JobPersistenceException if the desired trigger does not exist