Hi- I'm trying to understand why my runs are not s...
# prefect-server
f
Hi- I'm trying to understand why my runs are not showing up in the run. I have the local agent running and when I run the following code, I don't see the run in the UI
import prefect
from prefect import task, Flow
@task
def say_hello():
    
logger = prefect.context.get("logger")
<http://logger.info|logger.info>("Hello, Cloud!")
with Flow("hello-flow") as flow:
    
say_hello()
# Register the flow under the "tutorial" project
flow.register(project_name="tutorial")
flow.run()
a
As I understand it, that runs the flow without involving prefect server or your agent. If you do want to involve prefect server and your agent, take a look at: https://docs.prefect.io/orchestration/concepts/flow_runs.html
👍 1
f
Thank you. I think it was my bad. I didn't realize flow.run() is for local run and doesn't use the server/agent.