Hi all, I wanna kick-off the task depends on many ...
# ask-community
a
Hi all, I wanna kick-off the task depends on many before task. How to do that ?
k
Hi @Anh Nguyen, do you mean like this:
Copy code
with Flow(...) as flow:
    a = first_task()
    b = second_task()
    c = third_task(c_inputs, upstream_tasks=[a,b])
You can also do:
Copy code
with Flow(...) as flow:
    a = first_task()
    b = second_task()
    c = third_task(c_inputs)

    c.set_upstream(b)
a
yes! it's work . tks you