I just wanted to check if my configuration will wo...
# prefect-getting-started
w
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
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.
There's a few ways you could go about demonizing the agent. Here are two articles that may help you out with that: • How to run a Prefect 2 worker as a systemd service on LinuxDaemonizing the Agent with Docker
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.