<#3185 Support bound inputs for array node tasks> ...
# flyte-github
c
#3185 Support bound inputs for array node tasks Pull request opened by pvditt ## Tracking issue fixes: https://linear.app/unionai/issue/BB-2941/utilize-bound-inputs-for-partials-for-map-tasks ## Why are the changes needed? ## What changes were proposed in this pull request? add support for setting bound_inputs for ArrayNodeMapTask ## How was this patch tested? https://dogfood.cloud-staging.union.ai/console/projects/flytesnacks/domains/development/executions/a29rf95w9fx4hvqjpnt8/nodeId/n0/nodes
Copy code
@workflow
def wf():
    strings = ['hello', 'world']
    strings1 = ['hello', 'world']
    return union.map(my_task, bound_inputs={"s1": "test"})(s=strings, s1=strings1)
### 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 adds support for bound inputs in ArrayNodeMapTask with input consistency validation and improves input validation. The implementation includes updates to the flytekit core and translator module, implementing checks for key mismatches between 'bound_inputs' and 'bound_inputs_values'. Unit tests were updated to remove try-except blocks for cleaner error detection, enhancing robustness and flexibility in map task handling. Unit tests added: True Estimated effort to review (1-5, lower is better): 2 flyteorg/flytekit