I am looking to remove a stage from a pipeline and then republish it. Does anyone have experience doing this? Here is some sample code:
pipeline = control_hub.pipeline.get(name = pipeline_name)
stages = pipeline.stages
stage = stages.get(instance_name="HiveMetastore_1")
stages.remove(stage)
This successfully removes the stage from the ‘stages’ list object, but if I were to run pipeline.stages again, the stage I thought I removed is still there.