src/main/java/com/redislabs/quartz/RedisJobStore.java
/**
	 * Removes the trigger from redis.
	 *
	 * @param triggerKey the trigger key
	 * jedis thread-safe redis connection
	 * @throws JobPersistenceException
	 */
Removes the trigger from redis.
@param triggerKey the trigger key
jedis thread-safe redis connection
@throws JobPersistenceException
Removes the trigger from redis . @param triggerKey the trigger key jedis thread - safe redis connection @throws JobPersistenceException
private void removeTrigger(TriggerKey triggerKey, Jedis jedis) 
			throws JobPersistenceException {
		String triggerHashKey = createTriggerHashKey(triggerKey.getGroup(), triggerKey.getName());
		String triggerGroupSetKey = createTriggerGroupSetKey(triggerKey.getGroup());
		jedis.srem(TRIGGERS_SET, triggerHashKey);
		jedis.srem(triggerGroupSetKey, triggerHashKey);
		String jobHashkey = jedis.hget(triggerHashKey, JOB_HASH_KEY);
		String jobTriggerSetkey = createJobTriggersSetKey(jobHashkey.split(":")[1], jobHashkey.split(":")[2]); 
		jedis.srem(jobTriggerSetkey, triggerHashKey);
		if (jedis.scard(triggerGroupSetKey) == 0) {
			jedis.srem(TRIGGER_GROUPS_SET, triggerGroupSetKey);
		}
		if (jedis.scard(jobTriggerSetkey) == 0 && jedis.exists(jobHashkey)) {
			if (!Boolean.parseBoolean(jedis.hget(jobHashkey, IS_DURABLE))) {
				JobKey jobKey = new JobKey(jobHashkey.split(":")[2], jobHashkey.split(":")[1]);
				removeJob(jobKey, jedis);
				signaler.notifySchedulerListenersJobDeleted(jobKey);
			}				
		}
		String calendarName = jedis.hget(triggerHashKey, CALENDAR_NAME);
		if (!calendarName.isEmpty()) {
			String calendarTriggersSetKey = createCalendarTriggersSetKey(calendarName);
			jedis.srem(calendarTriggersSetKey, triggerHashKey);			
		}			
		unsetTriggerState(triggerHashKey);		
		jedis.del(triggerHashKey);
	}
private void removeTrigger ( TriggerKey triggerKey , Jedis jedis ) throws JobPersistenceException { String triggerHashKey = createTriggerHashKey ( triggerKey . getGroup ( ) , triggerKey . getName ( ) ) ; String triggerGroupSetKey = createTriggerGroupSetKey ( triggerKey . getGroup ( ) ) ; jedis . srem ( TRIGGERS_SET , triggerHashKey ) ; jedis . srem ( triggerGroupSetKey , triggerHashKey ) ; String jobHashkey = jedis . hget ( triggerHashKey , JOB_HASH_KEY ) ; String jobTriggerSetkey = createJobTriggersSetKey ( jobHashkey . split ( ":" ) [ 1 ] , jobHashkey . split ( ":" ) [ 2 ] ) ; jedis . srem ( jobTriggerSetkey , triggerHashKey ) ; if ( jedis . scard ( triggerGroupSetKey ) == 0 ) { jedis . srem ( TRIGGER_GROUPS_SET , triggerGroupSetKey ) ; } if ( jedis . scard ( jobTriggerSetkey ) == 0 && jedis . exists ( jobHashkey ) ) { if ( ! Boolean . parseBoolean ( jedis . hget ( jobHashkey , IS_DURABLE ) ) ) { JobKey jobKey = new JobKey ( jobHashkey . split ( ":" ) [ 2 ] , jobHashkey . split ( ":" ) [ 1 ] ) ; removeJob ( jobKey , jedis ) ; signaler . notifySchedulerListenersJobDeleted ( jobKey ) ; } } String calendarName = jedis . hget ( triggerHashKey , CALENDAR_NAME ) ; if ( ! calendarName . isEmpty ( ) ) { String calendarTriggersSetKey = createCalendarTriggersSetKey ( calendarName ) ; jedis . srem ( calendarTriggersSetKey , triggerHashKey ) ; } unsetTriggerState ( triggerHashKey ) ; jedis . del ( triggerHashKey ) ; }
Removes the trigger from redis.
Removes the trigger from redis .
// handling orphaned jobs // removing trigger state