https://prefect.io logo
Title
h

haris khan

07/26/2022, 9:30 AM
can one agent run multiple work-queues in prefect 2.0
โœ… 1
a

ale

07/26/2022, 9:51 AM
I donโ€™t think so, because when you start an agent, you need to pass the Work Queue identifier. With the following command, you can see all the available options to start an agent
prefect agent start --help
:thank-you: 1
a

Anna Geller

07/26/2022, 12:16 PM
you don't need multiple work queues for one agent, because you can pass multiple criteria like multiple tags or deployments to your work queue
Think of a work-queue more like a filter selection and an agent that applies that filter when polling for work
๐Ÿ‘ 1
h

haris khan

07/26/2022, 2:32 PM
i have different workques for deployment of different flows . each workqueue runs on a different node pool on gcloud
a

Anna Geller

07/26/2022, 3:28 PM
no, each agent runs on a different node pool -- work queue doesn't run anything, it's just a filter
that's why you don't need multiple work queues per agent - you can specify your filter criteria for an agent in a single work queue definition
h

haris khan

07/27/2022, 11:12 AM
@Anna Geller how can i deploy the agents using the given prefect-agent helm chart
a

Anna Geller

07/27/2022, 12:09 PM
we may provide more guidance on that in the future, but we don't have any tutorial to share as of now
h

haris khan

07/27/2022, 1:38 PM
thankyou @Anna Geller . just one more question . in the helm chart of prefect-agent can i give multiple workqueue names? because i have 4 workqueues ?
a

Anna Geller

07/28/2022, 12:38 AM
you can have as many work queues, agents and namespaces as you like ๐Ÿ˜„ no limits here