if I include LocalAgent().start() under where my f...
# prefect-server
c
if I include LocalAgent().start() under where my flow is registered in code, will the cloud starts up a agent to look for flows when it is scheduled to run?
n
Hi @Chohang Ng - that's correct, that will start a local agent. Typically we discourage starting the agent from a script like that so I'd recommend registering your flow as normal and calling
prefect agent start -t <<token>>
from the command line instead
c
but my command line terminal closes occasionally and thus the agent stops without me knowing and not able to pick up flows. How do you recommend me to get around that?
n
You can start a long-running process using a utility like
nohup
or
screen
- these will live past the life of your terminal session
1