My brain is fried (yay Friday) and I can't seem to...
# prefect-community
t
My brain is fried (yay Friday) and I can't seem to find this in the documentation. But how do I specify an upstream task explicitly when using the
with Flow() as flow:
pattern?
k
Like this?
Copy code
with Flow(...) as flow:
    a = task_a()
    b = task_b(upstream_tasks=[a])
t
thank you. I was looking for a function/method call
k
Copy code
with Flow(...) as flow:
    a = task_a()
    b = task_b()
    b.set_upstream(a)
t
ok, so I can do it either way? Brilliant!
k
Yeah