Javier Ochoa

02/01/2023, 6:41 PM
Hello, I have a question. I have 2 agents running in Prefect Cloud 1 (same labels, they are identical). I ran 3 workflows, and they all ran only at 1 agent, the other one did not received anything. Why is that happening, shouldn't it be like even process load?

Christopher Boyd

02/02/2023, 2:17 PM
That’s not generally the deployment model we use / recommend. Generally speaking, one agent per queue - what you would likely , and inevitably see if they are running separate is both try to submit a job a fraction of a second apart (because they don’t talk to each other), and you’ll get a traceback and “WARNING’ that this flow runhas already been submitted. The agents are very lightweight, and there should generally not be a need or requirement to duplicate agents listening to the same work-queue, unless you have a good use case we can better understand?