are you not able to have two agents listening for ...
# ask-community
j
are you not able to have two agents listening for flows on the same computer, with different labels? I have a docker agent and a local agent, all of a sudden getting this error:
Copy code
Flow run 478adfa1-5f4f-4dec-a121-a2443bc0a253 has a `run_config` of type `LocalRun`, only `DockerRun` is supported
I had registered the flow and previously used the flow on LocalRun, now all of a sudden it's failing but it was working a few hours ago?
k
You should be able to. Are you sure that the right agent is picking up the Flow? You can check the Agent screen and see what flow was picked up by the agent.
m
docs:
Copy code
RunConfig objects define where and how a flow run should be executed. Each RunConfig type has a corresponding Prefect Agent (i.e. LocalRun pairs with a Local Agent, DockerRun pairs with a Docker Agent, ...).
You use different labels for Flows?
j
Think I got it, thanks guys. So from what I understand now, an agent with multiple labels will pick up any flow that has ONE of those labels?
Copy code
Flow: "Joe's Flow"
Labels: "development"

Agent: "Local Agent"
Labels: "development"

Agent: "Docker Agent"
Labels: ["development", "docker"]
because "development" is one of the labels in the docker agent, that is why it was picked up by the docker agent - is that correct?
m
Yes, both agents have flow label, and capable to pick up/deploy the flow run. Agent labels can be superset of flow labels.