https://prefect.io logo
t

trapped

03/06/2020, 9:26 AM
hi guys! what would be the correct way to have an environment-global Flow (i.e. can run on all agents) with environment-specific Flow Runs (i.e. only runs on some agents depending on their labels)? from the docs it seems labels can only be set on Flows, and the
Client.create_flow_run
method doesn't accept a
labels
parameter
a

Alex Goodman

03/06/2020, 4:02 PM
we are chatting about this internally, but to answer your question there isn't a way to do this with labels currently. The easiest way to achieve what you're looking for is to register separate flows with different labels.