https://prefect.io logo
#prefect-community
Title
# prefect-community
k

Kayvan Shah

05/21/2022, 6:29 PM
Can't get the reason why there are so many late runs piling up Have scheduled about 6-7 flows on single node cluster via minikube
Sharing the deployment scripts
k

Kevin Kho

05/21/2022, 6:30 PM
Did you set up a workqueue and agent?
k

Kayvan Shah

05/21/2022, 6:33 PM
Have 3 work queues running
k

Kevin Kho

05/21/2022, 6:34 PM
How about agent?
k

Kayvan Shah

05/21/2022, 6:35 PM
Running on a single agent created via manifest file
k

Kevin Kho

05/21/2022, 6:37 PM
Which work queue is that agent using?
k

Kayvan Shah

05/21/2022, 6:39 PM
Copy code
- name: agent
          image: prefecthq/prefect:2.0b5-python3.9
          command: ["prefect", "agent", "start", "kubernetes"]
          imagePullPolicy: "IfNotPresent"
          env:
            - name: PREFECT_API_URL
              value: <http://orion:4200/api>
This what I have for agent
So does it mean that we have to create agent and work-queue with same names & those flows gets picked up
k

Kevin Kho

05/21/2022, 6:43 PM
Check here. The agent takes in the id of a work queue it starts. It’s not by name. So you need to create a work queue, get the id, and then start an agent. If you click the work queue, it gives you the command to start an agent with it:
k

Kayvan Shah

05/21/2022, 6:54 PM
It seems agent has failed to start
Have followed this tutorial Maybe something strange is going on https://orion-docs.prefect.io/tutorials/kubernetes-flow-runner/
a

Anna Geller

05/21/2022, 10:10 PM
you can start your agent with a work queue name provided that you create this work queue (doesn't have to be by ID) looks like issue with network and port forwarding?
3 Views