def clear_cached_executor_lists()

in smallpond/execution/scheduler.py [0:0]


    def clear_cached_executor_lists(self):
        if hasattr(self, "remote_executors"):
            del self.remote_executors
        if hasattr(self, "local_executors"):
            del self.local_executors
        if hasattr(self, "working_executors"):
            del self.working_executors
        if hasattr(self, "alive_executors"):
            del self.alive_executors
        if hasattr(self, "good_executors"):
            del self.good_executors
        if hasattr(self, "failed_executors"):
            del self.failed_executors
        if hasattr(self, "stopped_executors"):
            del self.stopped_executors
        if hasattr(self, "stopping_executors"):
            del self.stopping_executors
        if hasattr(self, "low_resource_executors"):
            del self.low_resource_executors