https://prefect.io logo
Title
j

Jared Robbins

08/25/2022, 9:08 PM
Missing something small, whats the syntax to pass multiple work queues to an agent
n

Nate

08/25/2022, 9:36 PM
Hi @Jared Robbins, you can just add more
-q
flags
❯ prefect agent start  -q a -q b
Starting agent connected to <https://api.prefect.cloud/api/accounts/XXXX/workspaces/XXXX>
  ___ ___ ___ ___ ___ ___ _____     _   ___ ___ _  _ _____
 | _ \ _ \ __| __| __/ __|_   _|   /_\ / __| __| \| |_   _|
 |  _/   / _|| _|| _| (__  | |    / _ \ (_ | _|| .` | | |
 |_| |_|_\___|_| |___\___| |_|   /_/ \_\___|___|_|\_| |_|


Agent started! Looking for work from queue(s): a, b...
16:36:13.041 | INFO    | prefect.agent - Created work queue 'a'.
16:36:13.297 | INFO    | prefect.agent - Created work queue 'b'
where in this case I hadn't created them up front, so it did it for me. Should work the same way when referencing existing work queues
j

Jared Robbins

08/25/2022, 9:40 PM
Ahhhhhhhhhh. That makes sense. For some reason i was doing commas. Guess i should have known this from passing env variables in docker run. Woops
n

Nate

08/25/2022, 9:40 PM
now you know 🙂