https://prefect.io logo
Title
h

Hunter Ellis

03/04/2022, 7:39 PM
Good afternoon. I just ran my first flow using prefect server and the localhost:8080. I had a question on scheduling. Is there a way to automate activating the server and local agent or do I just need to leave it running in the background?
k

Kevin Kho

03/04/2022, 7:40 PM
They are meant to be run as long running processes because the server has processes that consistently run to schedule your flows. I think server has a
--detach
flag
h

Hunter Ellis

03/04/2022, 7:46 PM
Kevin, I am running locally as opposed with Docker. Will that work locally?
k

Kevin Kho

03/04/2022, 7:53 PM
Server as the detach flag and only runs containerized right?
prefect server start
spins up Docker containers for that.
The detach flag is for server but not agent
h

Hunter Ellis

03/04/2022, 8:03 PM
Ok so I would need to manually start an agent every time?
k

Kevin Kho

03/04/2022, 8:40 PM
Well more like you would leave the agent on to pick up work
h

Hunter Ellis

03/04/2022, 8:43 PM
Thanks Kevin, that was my confusion.
z

Zanie

03/04/2022, 9:01 PM