<#4184 [BUG] remote workflow called in conditional...
# flyte-github
a
#4184 [BUG] remote workflow called in conditional branch ran into issue Issue created by ysysys3074 Describe the bug I have the code below which invoked a reference_launch_plan called
data_launch_plan
inside then() branch of conditional, but got
KeyError: LAUNCH_PLAN:XXX
in compile time. I suspect the issue is due to this https://github.com/flyteorg/flytekit/blob/master/flytekit/remote/remote.py#L364 as
node_launch_plans
is empty dict from what I saw. And
data_launch_plan
is working and
node_launch_plans
is with values when calling it in a normal way.
Copy code
featurized_dataset_location = (
        conditional("test")
            .if_(has_config.is_true())
            .then(
                data_launch_plan(
                    proxy_as=proxy_as,
                    name=name,
                )
            )
            .else_()
            .then(test(a=a))
Expected behavior Since this is a TODO, can you plz help to fix this https://github.com/flyteorg/flytekit/blob/master/flytekit/remote/remote.py Additional context to reproduce No response Screenshots No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte