Missing something small, whats the syntax to pass ...
# prefect-community
j
Missing something small, whats the syntax to pass multiple work queues to an agent
n
Hi @Jared Robbins, you can just add more
-q
flags
Copy code
❯ 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
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
now you know 🙂