Is there any way to disable a schedule set in code...
# ask-community
j
Is there any way to disable a schedule set in code from cloud? Or set parameters per schedule in cloud?
j
You can disable schedules completely via the cloud UI (switch in the upper-right corner). The cloud UI does not support configuring parameters-per-schedule when adding schedules to a flow, but you can do that via code and it will run fine on cloud (https://docs.prefect.io/core/concepts/schedules.html#varying-parameter-values).
j
Worth noting a related PR is open though! https://github.com/PrefectHQ/ui/pull/683
upvote 2
j
Thanks @Natalie Smith this is awesome!
This is super helpful. Just to be clear on the use case: 1. I’d like to be able to create Scheduled runs with specific parameters either in Cloud (now possible) or through code (already possible) 2. Be able to disable/enable individual schedules in Cloud that were created either in Code or via the UI The PR above already fixes our main blocker, but it would be nice to have the ability to define the schedules in code (so we have change tracking) and be able to disable each individually in Cloud in case of maintenance or debugging needs.
1