True Task in this flow always run even if condition = False
with Flow("flow") as flow:
value = Constant(value="This is True Task", name='Generate constant')
condition = FunctionTask(fn=lambda: False, name='Always False Condition')()
with case(condition, True):
final_value = merge(value)
FunctionTask(fn=lambda v: prefect.context.get('logger').info(v), name='True Task')(final_value)
with case(condition, False):
FunctionTask(lambda: prefect.context.get('logger').info('This is False Task'), name='False Task')()
The diagram is correct but behavior is wrong