cuddly-jelly-27016
02/25/2025, 10:02 PMKeyError:
LAUNCH_PLAN:flytesnacks:development:yt_dbg.scratchpad.array_node_lp_source.hello_world_w
f_for_array:hOMsbgLXveLF2C15vDjQQA
because we didn't inspect launch plan inside an array node in dynamic case.
What changes were proposed in this pull request?
• Fix sync_node_execution for map over lp in dynamic.
• Refactor a bit to remove duplicate codes.
How was this patch tested?
tested with a dynamic workflow which contains map over launch plan and I was able to call sync_node_execution and get the correct data.
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
Summary by Bito
This PR addresses a bug in sync_node_execution where launch plans within array nodes of dynamic workflows were causing KeyError exceptions. The implementation has been refactored to properly inspect and handle launch plans inside array nodes, with improved code organization through method separation and enhanced support for map operations over launch plans.
Unit tests added: False
Estimated effort to review (1-5, lower is better): 1
flyteorg/flytekitcuddly-jelly-27016
02/25/2025, 10:02 PMcuddly-jelly-27016
02/25/2025, 10:04 PM