I'm trying to register a new flow version (ie: same name) and kick off a run, but the updated labels don't seem to be getting used so it gets run on the wrong agent. Is there a way to set label per-flow or per-flow-run that override the flow_group?
j
Jim Crist-Harif
03/17/2021, 7:53 PM
If you ever updated the labels on the flow group (via the UI), those will persist even after a re-registration. You'll need to manually clear the override to go back to using the settings on the flow itself.
Jim Crist-Harif
03/17/2021, 7:54 PM
You can set labels per flow run though (exposed through the
Run
(not
Quick Run
) page in the UI, the CLI, or the
prefect.Client.create_flow_run
method)
j
Jacob Hayes
03/17/2021, 8:26 PM
ah, ok that probably happened at some point.
I think we're using
prefect.cli.run.flow
right now (so we can watch logs) which doesn't seem to take the labels flag. Do you think it'd make sense to PR adding labels+version_group_id via the CLI? cc @Brett Naul
j
Jim Crist-Harif
03/17/2021, 8:29 PM
Hmmm, you're right, a labels flag is missing in the CLI command, that'd definitely be something we'd be interested in adding.
Jim Crist-Harif
03/17/2021, 8:29 PM
A
--version-group-id
flag already exists though.
j
Jacob Hayes
03/17/2021, 8:33 PM
Oh great, we're a couple versions behind so missed that. I'll PR the labels flag then! thanks
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.