

def run(self):
    while self.alive:
        now = datetime.now()
        if (not self.rrule.between(self.last_execution, now)):
            sleep(self.sleep_between_checks)
            continue
        self.last_execution = now
        try:
            self.func()
        except:
            logger.exception('Failed to call {}'.format(now.func.__name__))

dataset/ETHPy150Open ottogroup/palladium/palladium/util.py RruleThread.run/VarMisuse@83/100 `self`->`now`