Hello, is there a way to prevent deployments from ...
# ask-community
a
Hello, is there a way to prevent deployments from overriding whether or not a flow is enabled in Prefect 1? In this case, I have deployed flows that have been turned off in the UI that will automatically be turned on again the next time I deploy changes even for something unrelated. This means having to remember to turn a flow off again after every deployment which can be annoying and create issues if a flow runs by accident when it shouldn't.
1
t
The only way I found was to remove the schedule.
k
Hi Austin, I think you could use the --no-schedule arg for the register CLI https://docs-v1.prefect.io/api/latest/cli/register.html#register-2
gratitude thank you 1
🙏 1
a
Thank you, looks like I need to write some additional logic around the flow registration step in my deployment to avoid scheduling if the flow has previously been deployed