Hello,
Thanks for reaching out to us.
If you have a Pipeline that is published, but not scheduled, you can disable it with:
pipeline = PublishedPipeline.get(ws, id=pipeline_id)
pipeline.disable()
If the pipeline is scheduled, you must cancel the schedule first. Retrieve the schedule's identifier from the portal or by running:
ss = Schedule.list(ws)
for s in ss:
print(s)
Once you have the schedule_id you wish to disable, run:
def stop_by_schedule_id(ws, schedule_id):
s = next(s for s in Schedule.list(ws) if s.id == schedule_id)
s.disable()
return s
stop_by_schedule_id(ws, schedule_id)
If you then run Schedule.list(ws) again, you should get an empty list.
Regards,
Yutong