Hi all, does anyone have any tricks to only respect a schedule based on a project name?
Our use case is that we use prefect projects for our environments/branches (e.g. we have a master project, a staging project a branch_1 project etc etc), but we want to turn off all scheduling for everything apart from the master branch.
We currently do some monkey patching at register time to set the schedule=None, but we'd rather have something in the prefect CLI. For example
We've also messed about with setting a bad label on the schedule itself, which "kind of" works, as in the flow won't run because it can't find an agent, but, the UI still get overwhelmed with flows being scheduled, but not being able to be run.
k
Kevin Kho
05/14/2021, 4:35 PM
Hi @Ben Davison! I’m looking into this
Kevin Kho
05/14/2021, 4:40 PM
Clever approach with the label by the way bit yes that runs into issues in the long run unfortunately.
Kevin Kho
05/14/2021, 5:06 PM
Kevin Kho
05/14/2021, 5:06 PM
You can use automations to clear the flow runs being scheduled with those labels I think
Kevin Kho
05/14/2021, 5:07 PM
And then I guess you can use a graphql call to remove the schedule. I will also elevate your feedback.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.