def check(self):
        for task in list(self.not_started):
            if self.max_jobs and (len(self.started) >= self.max_jobs):
                continue

            if not task.can_start():
                continue

            self.started.add(task)
            self.not_started.remove(task)
            task.start()
dataset/ETHPy150Open ohmu/poni/poni/work.py/Runner.check/original