Thread
#prefect-community
    Joseph Loss

    Joseph Loss

    1 year ago
    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:
    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?
    Kevin Kho

    Kevin Kho

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

    Marko Herkaliuk

    1 year ago
    docs:
    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?
    Joseph Loss

    Joseph Loss

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

    Mariia Kerimova

    1 year ago
    Yes, both agents have flow label, and capable to pick up/deploy the flow run. Agent labels can be superset of flow labels.