I just wanted to check if my configuration will work properly. I've set up the prefect-agent running in a virtual environment. I then have a project running in a seperate venv. I have started the prefect server and then can run the project deployment and its successfully added. Do I need to keep open the project python file running or can i close that and the flow will run on schedule with just the prefect server running
b
Bianca Hoch
10/10/2023, 3:16 PM
Hi Will! You'll need to ensure that the agent is daemonized so that your work continues to run. Daeomonizing the agent helps to keep it up and running, and actively polling for scheduled work. You'll also need to ensure that the prefect server continues to stay up and running as well.
If hosting the server gets to be somewhat cumbersome, you could always give the free-tier of Prefect Cloud a spin. Prefect Cloud gives you all the orchestration features of self-hosting, without needing to manage the server yourself.