'Recalculate the maximum sleep delay.
This shall be called from a lock zone only'

def __recalculateSleep(self):

    for i in range(2, 61):
        filteredTasks = [True for task in self.schedule.values() if ((int(task[1]) % i) != 0)]
        if (len(filteredTasks) == 0):
            self.sleep = i
