question

BondTran-8480 avatar image
0 Votes"
BondTran-8480 asked YutongTie-MSFT commented

Can't disable a scheduled pipeline endpoint

Hello,
I scheduled my pipeline to run weekly. Now I want to disable it. However, when I disable on Azure ML Studio, an error shows as below:

An error occurred while disabling pipeline
BadRequest: Cannot deprecate a pipeline with active schedules.

Trace ID : cded492c-84a5-47aa-afc4-0a678e611e5b
Client request ID : 4e904a8b-90f5-4572-815d-c23a0249c43b

Could you look into this? and instruct me how to stop that scheduled pipeline.
Thanks,

azure-machine-learningazure-machine-learning-inference
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,

Please check the answer to see if that works for you and let me know if any issue there.


Regards,
Yutong

0 Votes 0 ·

1 Answer

YutongTie-MSFT avatar image
1 Vote"
YutongTie-MSFT answered

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





5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.