Scan schedule in batches (for cancelling). Also, when finding the range of scheduled jobs, utilize Redis' native O(log(n)) ordered-set search if a scheduled time is provided.