Quick question: Is there a way to programmatically...
# prefect-community
k
Quick question: Is there a way to programmatically create / update a deployment, say via
.build_from_flow
, but keep it disabled / turned off, similar to how we can turn them off via the UI?
1
r
Hey @Kelvin DeCosta!! When you say "turned off", do you mean that there is no schedule applied? Once the flow is deployed (assuming there is no schedule), then it shouldn't run unless you run it from the UI. If there is a schedule applied when you deploy it but you want to delete the scheduled runs, I believe you can use the set schedule inactive REST endpoint
1
k
Ah that makes a lot of sense! Thank you
👍 1