Is there a way to do it directly based on the project?
m
Marwan Sarieddine
05/21/2021, 1:59 AM
I don’t think so, labels are at the flow-level as far as I know - maybe someone on the prefect team can shed more light about this
k
Kevin Kho
05/21/2021, 2:17 AM
Yes label is the only mechanism for this.
j
Jeremy Phelps
05/21/2021, 11:56 AM
What exactly are projects for?
k
Kevin Kho
05/21/2021, 12:12 PM
I see them used as a separator for staging and prod flows (dev project, project). I’ve also seen them used as logical groupings of flows. When you go to the UI and look at the health of your flows, you can do it on a per project view.
j
Jeremy Phelps
05/21/2021, 12:13 PM
But they can't be used for that. The reason I've had to resort to labels is because my prod agent would otherwise run staging flow-runs on my prod Dask cluster.
k
Kevin Kho
05/21/2021, 12:16 PM
Yeah that is exactly what labels are provided for. Projects are a logical grouping for the UI (and also to query flows)