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.