Michael
09/06/2021, 12:57 PMMichael
09/06/2021, 1:03 PMmy_task_1 = MyTask1()
my_task_1.set_upstream(previous_task)
my_task_1.set_upstream([True, False], key="param_1", mapped=True)
my_task_1.set_upstream([1, 2, 3], key="param_2", mapped=True)
my_task_1.set_upstream("hello", key="param_3")
my_task_2 = MyTask2()
my_task_2.set_upstream(my_task_1, key="prev_task_output", mapped=True)
and it seems like my flow exists once tasks 1 and 2 have completed for param_1=True
and param_2=1
. I never see MyTask1 run for the other param combinationsMichael
09/06/2021, 1:36 PMKevin Kho
unmapped
and then loop over it in side the task.
The second thing (less sure if you are facing this one) is that if you want breadth first execution, you can try doing my_task_2.set_upstream(unmapped(my_task_1))
so that all of my_task_1
completes before my_task_2