Closed bmwilly closed 2 weeks ago
If the parameter names in the parent and child flows are different, the parameters do not map correctly, resulting in errors you can use the subprocess module to run the child flow and pass the parameters directly as command-line arguments.
@sanowl but is this expected behavior? Doesn't this defeat the purpose of the Runner
API?
@bmwilly @sanowl #1886 should address this issue
@savingoyal thanks for the quick fix!
Calling a child flow from a parent flow using the
Runner
API is impossible if the two flows' parameter names are different. A reproducible example follows.Given the flows
child_flow.py
:and
parent_flow.py
:running
python parent_flow.py run --date 2024-01-01
leads todate_child
:date
:date
anddate_child
:(1) is the expected happy path; i.e., I don't think
date
should be a required argument.