Sean Conroy12/12/2022, 5:18 PM
from prefect import task, Flow @task def get_value(): return 10 with Flow("task-results") as flow: v = get_value() print(v) state = flow.run()
. What am I doing wrong?
Zanie12/12/2022, 5:30 PM
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 Conroy12/12/2022, 5:31 PM