Jacob Goldberg
09/17/2021, 4:49 PMfalse
. How can i get it to execute in both cases where the parameter is true
or false
? Sample code in threadJacob Goldberg
09/17/2021, 4:49 PMwith Flow(name="Example Flow") as example_flow:
boolean_parameter = Parameter("strict_transfer", True)
with case(boolean_parameter, True):
my_task_function = some_function(some_option=True)
with case(boolean_parameter, False):
my_task_function = some_function(some_option=False)
some_other_task_function(upstream_tasks=[my_task_function])
Jacob Goldberg
09/17/2021, 4:50 PMsome_function()
, but my understanding was that I need to assign it to a variable to feed it to the upstream_tasks
parameterKevin Kho
always_run
? DocsKevin Kho
some_other_task_function
gets a SKIPPED state, so you can also do skip_on_upstream_skip=False
in the @task
definitionJacob Goldberg
09/17/2021, 7:19 PM