George Coyne
10/30/2019, 5:35 PMall_finished
trigger but for whatever reason the task is running first. Thanks in advanceChris White
10/30/2019, 5:37 PMflow.set_dependencies(final_task, upstream_tasks=list(flow.terminal_tasks()))
all_finished
trigger is the correct trigger 👍Argemiro Neto
10/30/2019, 5:42 PMfinal_task_var = this_is_the_final_task()
my_new_final_task_var = my_final_task()
my_new_final_task_var.set_upstream([final_task_var])
George Coyne
10/30/2019, 5:44 PMChris White
10/30/2019, 7:23 PMJeremiah
10/30/2019, 7:32 PMall_finished
means “when all tasks upstream of this task are finished” rather than “when all tasks of the flow are finished”. If you make this task sit downstream of all the other tasks, as in Chris’s first example, then it will have the behavior you want where it truly runs after ALL other tasks have finished. Apologies if that was already clear to you but just wanted to be sure!