     return if !targetId
 
     redis.srem "groups/#{groupId}", targetId
-    redis.del "repeat/#{targetId}"
+    redis.del "active/#{targetId}"
 
     redis.get "job/#{targetId}", (err, jobId) =>
       debug 'unsubscribeTarget group', groupId, 'target', targetId, 'job', jobId


  unsubscribeGroup: (groupId) =>
    debug 'unsubscribeGroup', groupId
    redis.del "repeat/#{groupId}"
    redis.smembers "groups/#{groupId}", (err, targetIds) =>
      debug 'unsubscribeGroup found', err, targetIds
      _.each targetIds, (targetId) =>

          intervalTime: intervalTime
        }).
        removeOnComplete(true).
        attempts(process.env.INTERVAL_ATTEMPTS ? 999).
        ttl(process.env.INTERVAL_TTL ? 10000).
        save =>
          redis.set "job/#{targetId}", job.id
          debug ' - created job', job.id, 'for', targetId
