Sean Conroy
12/12/2022, 5:18 PMfrom prefect import task, Flow
@task
def get_value():
return 10
with Flow("task-results") as flow:
v = get_value()
print(v)
state = flow.run()
I get <Task: get_value> instead of 10 . What am I doing wrong?Zanie
with Flow block you are declaring your DAG, not running the flow. If you move your print value to a task, it’ll execute at runtime.Sean Conroy
12/12/2022, 5:31 PM