def _watcher(self, event):
        logger.debug("Watcher received")
        if not self.triggered:
            try:
                time_to_wait = random.randint(self.delay_min, self.delay_max)
                logger.debug("Watcher triggered, sleeping for %d seconds" % time_to_wait)
                self.triggered = True
                self._client.handler.sleep_func(time_to_wait)
                self._get_children(event)
            finally:
                self.triggered = False
        return
dataset/ETHPy150Open facebookarchive/neti/neti/registry.py/ThrottledChildrenWatch._watcher/original