Hi, if I have certain run time conditions to check...
# ask-community
t
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?
Copy code
if condition:
	task_A = run_task_a()

run_task_b(upstream_tasks[task_a]). # <-- will this work?
or would I need to do this?
Copy code
if condition:
	task_A = run_task_a()
    run_task_b(upstream_tasks[task_A])

else:
	run_task_b()
j
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.