https://prefect.io logo
Title
a

Alan Yap

06/28/2022, 5:37 AM
Hi, apology if this question’s been asked but I couldn’t find anything here nor on the Prefect docs. I have a CI/CD set up to deploy a flow in Dev with a schedule (like below) and then promote and deploy to Prod once it’s ready. How can I turn off the scheduling for Dev in between my development cycles (to minimise artifact generation e.g. file downloads etc) ? There is no option to do so in the UI. I am curious what are some of the approaches others use in their CI/CD to do this.
schedule = Schedule(clocks=[mon_10am, mon_1230pm, tues_11am, wed_5am])

with Flow('test-flow', schedule = schedule) as flow:
k

Kevin Kho

06/28/2022, 7:43 AM
The toggle is here in the UI
Or you can hit the GraphQL endpoint to turn off schedules
set_schedule_inactive
a

Alan Yap

06/28/2022, 12:18 PM
Thanks Kevin! I obviously didn’t look hard enough in the UI 🙂