j

    Jacob Hayes

    1 year ago
    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?
    Jim Crist-Harif

    Jim Crist-Harif

    1 year ago
    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.
    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

    1 year ago
    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
    Jim Crist-Harif

    Jim Crist-Harif

    1 year ago
    Hmmm, you're right, a labels flag is missing in the CLI command, that'd definitely be something we'd be interested in adding.
    A
    --version-group-id
    flag already exists though.
    j

    Jacob Hayes

    1 year ago
    Oh great, we're a couple versions behind so missed that. I'll PR the labels flag then! thanks