Austen Bouza

11/01/2022, 4:00 PM
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.

Tim Enders

11/01/2022, 4:28 PM
The only way I found was to remove the schedule.

Kalise Richmond

11/01/2022, 5:08 PM
Hi Austin, I think you could use the --no-schedule arg for the register CLI
🙏 1
:gratitude-thank-you: 1

Austen Bouza

11/02/2022, 10:21 AM
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