https://prefect.io logo
Title
w

William Jamir

08/04/2022, 5:09 PM
Is it possible to start multiple agents from the command line by only informing the tag? For example, If I execute:
prefect agent start -t test
I can see that a new “Work Queue” is added to the UI (
Agent queue test
) But if I start a new agent (on another tab) with the same command, the UI keeps the same. Is this the expected behavior? Would it be possible to add a
--name
parameter on the start command to allow starting multiples agents to consume the same tag?
o

Oscar Björhn

08/04/2022, 5:15 PM
I believe it's only creating a new queue because it can't find an existing one with matching tags. The second time you run the command, it is able to find an existing queue. Both agents are listening to the same queue.
👍 1
t

Taylor Curran

08/04/2022, 5:32 PM
Also Will, if you are trying to spin up lots of work-queues you could try using https://docs.prefect.io/api-ref/prefect/client/#prefect.client.OrionClient.create_work_queue
🙌 1
w

William Jamir

08/04/2022, 5:36 PM
Thanks @Oscar Björhn for the clarification 🙂 Awesome! Thanks a lot @Taylor Curran for this link, I was not aware of this prefect.client interface 🤓
:marvin: 1
👍 1