def METHOD_NAME(self, job: Job) -> None:
    while True:
        self.logger.info("waiting for regression task to finish")
        for task in self.onefuzz.jobs.tasks.list(job.job_id):
            if task.config.task.type not in [
                TaskType.libfuzzer_regression,
                TaskType.generic_regression,
            ]:
                continue
            if task.state != TaskState.stopped:
                continue
            return
        time.sleep(10)