Hi, if I have certain run time conditions to check before defining some upstream tasks, can I still use the same task variable for dependencies?
if condition:
task_A = run_task_a()
run_task_b(upstream_tasks[task_a]). # <-- will this work?
or would I need to do this?
if condition:
task_A = run_task_a()
run_task_b(upstream_tasks[task_A])
else:
run_task_b()
j
Jenny
07/24/2020, 9:07 PM
Hi @Tsang Yong - thanks for the question! I guess the question depends on whether you want run_task_b to always run. The docs on triggers should give you a bit more information and background on when things will run or not.