Hi Team, Can we start prefect agent with multiple ...
# ask-community
t
Hi Team, Can we start prefect agent with multiple pools? I tried below but it doesn't work, it only picks up the last -p pool mentioned
Copy code
prefect agent start -p my-pool -p my-pool-2 -p my-pool-3
1
b
Hi Tanishq! I believe that agents and* workers are only able to poll from multiple queues within a work pool, and not multiple pools
if you want to direct a worker/agent to poll multiple queues, the syntax will look something like this:
prefect agent start --pool agent-pool -q 'queue1' -q 'queue2' -q 'queue3'
1
a
what is the purpose of a work pool? if there are different agents polling different work pools, then some agents might be idle unless there is some work scheduled to that work pool. Is there any best practice for this