https://prefect.io logo
Title
s

Scott Walsh

12/01/2022, 11:09 PM
The
prefect kubernetes manifest agent
command seems to only take in one queue. I'd like the agent to read from multiple queues, is there syntax I can change or is this a bug? using prefect==2.6.7
(scott/CD-562-prefect-poc) prefect kubernetes manifest agent -q test1 -q test2
apiVersion: apps/v1
kind: Deployment
metadata:
  name: prefect-agent
  namespace: default
  labels:
    app: prefect-agent
spec:
  selector:
    matchLabels:
      app: prefect-agent
  replicas: 1
  template:
    metadata:
      labels:
        app: prefect-agent
    spec:
      containers:
      - name: agent
        image: prefecthq/prefect:2.6.7-python3.9
        command: ["prefect", "agent", "start", "-q", "test2"]
        imagePullPolicy: "IfNotPresent"
        env:
          - name: PREFECT_API_URL
m

mason

12/09/2022, 6:13 PM
Hey Scott not sure if you had this answered already but this sounds like a bug in the command, you can specify multiple queues on the agent start command, i.e. you could get around this by justing adding another queue after the test2 queue you have listed.
m

Mason Menges

12/09/2022, 6:14 PM
basically the command in the manifest would look like this
["prefect", "agent", "start", "-q", "test2", "test3"]
s

Scott Walsh

12/12/2022, 4:11 PM
Thanks for the responses. I was able to work around this problem. Would you like me to raise in GitHub as a bug or is it raised already?
m

Mason Menges

12/12/2022, 8:59 PM
I think it definitely warrants one, it's not a huge issue but the command should, I would think, be consistent in terms of generating the manifest with multiple workqueues