cuddly-jelly-27016
03/05/2025, 1:07 AMsimple_wf_lp_fixed_inputs = LaunchPlan.get_or_create(
name="simple_wf_lp_fixed_inputs", workflow=simple_wf, fixed_inputs={"x": [-3, 0, 3]}
)
@workflow
def test_map_task() -> list[float]:
x = [[1, 2, 3], [1, 2, 3]]
y = [[5, 6, 7], [5, 6, 7]]
return map_task(simple_wf_lp_fixed_inputs)(y=y)
@reference_launch_plan(
project="flytesnacks",
domain="development",
name="simple_wf_lp_fixed_inputs",
version="o89vSTZ0r8ZY-6z_9OoUCA",
)
def simple_wf(
y: list[int]
) -> float:
return 1.0
@workflow
def map_over_ref_launch_plan():
return map_task(simple_wf)(y=[[1, 2, 3]])
remote = FlyteRemote(config=Config.auto(), default_project="flytesnacks", default_domain="development")
lp1 = remote.fetch_launch_plan(name="simple_wf_lp_fixed_inputs",
version="o89vSTZ0r8ZY-6z_9OoUCA")
@workflow
def map_over_remote_lp():
return map_task(lp1)(y=[[1, 2, 3]])
### Setup process
### Screenshots
## Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
## Related PRs
## Docs link
### Summary by Bito
This PR fixes a critical bug related to improper inclusion of fixed inputs when mapping over launch plans by introducing an excluded_inputs parameter and modifying the array node interface for proper literal-to-set conversion. The changes affect multiple core components including array nodes and task mapping functions, improving execution reliability while maintaining compatibility with existing tests.
Unit tests added: True
Estimated effort to review (1-5, lower is better): 2
flyteorg/flytekitcuddly-jelly-27016
03/05/2025, 1:07 AMcuddly-jelly-27016
03/12/2025, 5:34 PM