Hi there, I just started using prefect and have a...
# data-tricks-and-tips
k
Hi there, I just started using prefect and have a question about scheduling flow for auto deployment. Currently using prefect cloud and sending the flow to it from my IDE (vscode). But i noticed after i closed my IDE the scheduled flow which is suppose to run daily at 17:00 fails to run. Looks like i need to have an active agent running (?) in order for my flows to work? Is there any other way i can let the flow run automatically without my local machine maintaining the IDE and the agent opened? Thanks!
1
r
you'll need to install an agent on a server that can run 24/7
k
Hi @redsquare thank you for responding, couple of follow up questions: 1. This server agent, is it the "orion server" that i see being mentioned on the site? 2. Do i have to upload my python script to this server for it to "host" and run the flow? or do i just point my existing ide terminal to this server and it will take care of the rest?
r
You just need an worker/agent not the orion server (Orion name now depreciated) https://discourse.prefect.io/t/how-to-run-a-prefect-2-worker-as-a-systemd-service-on-linux/1450
🙌 3
k
appreciate it, let me try it out
thanks man
👍 1
hi @redsquare sorry to bother again, i did the steps as per your linked post but my agent still doesn't run flows automatically on the scheduled time. Also it still shows that my pool is unhealthy vs. healthy when i run
prefect agent start --pool default-agent-pool
For some context, i am running prefect on my ubuntu container hosted on proxmox (not sure if this matters). When i run
prefect agent start --pool default-agent-pool
on the command line, my follows will work, and the pool will have a green (healthy) status. But after completing the steps above linked, i managed to get it running on my container but it doesn't run the scheduled flows and the pool is showing up and unhealthy (red).