Hi all,
While i execute flow manually ( from my IDE ) it works but the same if i run from the cloud UI it gets scheduled but moved to "Late" state or not running. Help Appreciated
a
Austin Weisgrau
03/09/2023, 12:29 AM
Prefect cloud is just orchestration, not execution. You need to run a prefect agent somewhere
It worked after starting the agent in the execution environment. Thanks for your guidance.
prefect agent start --pool default-agent-pool
I have couple of queries
1. How to run this agent in the background .if I exit the terminal now the agent is killed too.
2. How can we do the logging so that when the agent executes the flow in background process I can check it.
a
Austin Weisgrau
03/09/2023, 6:35 PM
1. A lot of ways to run processes in the background. Tmux is one solution. You could use a systemd service, or run the agent in a docker image with the detached option
2. You can set up your loggers in python to use a filehandler to log to a file, and/or read the streaming logs from the agent process when you reattach your terminal to the process