Hey folks. I feel like I am running into something...
# ask-community
f
Hey folks. I feel like I am running into something that might be a bit of a nuance with Label names. In Prefect cloud, I am seeing "It looks like no currently running Agent has this Flow's full set of labels". I believe we may have had an extra trailing space(?) at some point during the initial flow registration that we attempted to address a few days back. So, I went to the Interactive API section to query the given flow to verify the label and the graphQL is returning null for the label. I was expecting to see some sort of value for the flow label. Using graphql I could see that the agent had the correct label with no spaces. Any ideas?
1. If I manually remove then hand type the label name (without a trailing space) the labeling error message gets resolved. (In reality, I need to rely on CI/CD to re-register the flow). Also, graphQL returns the non-null label name in this scenario. 2. What does the 'reset to labels from flow registration ' do ... meaning which version of the flow does the 'reset' pick? Can I use graphQL to see what value its going to reset to? Edit: Just to clarify, removing my hand typed label and clicking reset brings the labeling error message back. I am not certain what's really at play here.
j
Hi @Felipe Saldana - Prefect Cloud uses both flow labels (set in your code at flow registration) and flow group labels (which can be set through the UI or API and which override any labels set at flow registration). When you select reset in the UI it sets your labels back to the ones set at registration (from your latest flow) and removes any set through the UI or API.
If you want to see the labels set at flow registration you can check the run_config or environment for them:
Copy code
query {
  flow_group_by_pk(id: "XXXX"){
    name
    id
    labels
    flows {
      run_config
  	  environment  
    }
  }
}
f
Thanks @Jenny, I do see a non-null label in the
run_config
and the label does have extra white space.
👍 1