https://prefect.io logo
Title
h

Ha Pham

09/26/2022, 9:05 AM
Hi all, as I understand, to run a flow, this is the steps: • first you create a work queue, and then you start an agent polling that work queue. • if you start an agent without creating a work queue first, the queue will be created automatically If you follow the first case, there maybe work queues created without agents. How do you check which agents are running? I don't see that option in the CLI.
j

Jeff Hale

09/26/2022, 12:08 PM
In Prefect 2, you run the agents on your infrastructure. There is not currently a Prefect command to check which agents are running, but if you are on a linux or mac OS you can see all running Python processes with:
pgrep python
Then you can see the specifics for any of those processes with:
ps -f -p replace_with_process_id_number
Then you can kill any running processes with:
sudo kill replace_with_process_id_number
You may be prompted for your system password.
h

Ha Pham

09/27/2022, 10:36 AM
Thanks Jeff!
👍 1