def _clean(self):
        now = time.time()
        for name in self.jobs_status.keys():
            start_time = self.jobs_status[name]
            if now - start_time > TIMEOUT:
                self.log.critical("Restarting Pool. One check is stuck: %s" % name)
                self.restart_pool()
                break
dataset/ETHPy150Open serverdensity/sd-agent/checks/network_checks.py/NetworkCheck._clean/original