def delete_pipeline(self, pipeline: Pipeline): if pipeline.id is None: raise NonExistingPipelineError(pipeline) self.data.remove_pipeline(pipeline.id) self.save() pipeline.unbind_meta_repo()
def delete_pipeline(self, pipeline: Pipeline): self._delete_object(self.pipelines, pipeline, NonExistingPipelineError, AssertionError) pipeline.unbind_meta_repo()