def remove_job(self, job_name): if job_name not in self.jobs: raise ValueError("Job %s unknown", job_name) job = self.jobs.pop(job_name) job.disable()
def disable_job(self, job): job.disable()