

def __init__(self, func, rrule, sleep_between_checks=60):
    '\n        :param callable func:\n          The function that I will call periodically.\n\n        :param rrule rrule:\n\n          The :class:`dateutil.rrule.rrule` recurrence rule that\n          defines when I will do the calls.  See the `python-dateutil\n          docs <https://labix.org/python-dateutil>`_ for details on\n          how to define rrules.\n\n          For convenience, I will also accept a dict instead of a\n          `rrule` instance, in which case I will instantiate an rrule\n          using the dict contents as keyword parameters.\n\n        :param int sleep_between_checks:\n          Number of seconds to sleep before I check again if I should\n          run the function *func*.\n        '
    super(RruleThread, self).__init__(daemon=True)
    if isinstance(rrule, dict):
        rrule = self._rrule_from_dict(rrule)
    self.func = func
    self.rrule = rrule
    self.sleep_between_checks = sleep_between_checks
    self.last_execution = datetime.now()
    self.alive = True

dataset/ETHPy150Open ottogroup/palladium/palladium/util.py RruleThread.__init__/original