Hi Kedro community :slightly_smiling_face: If I ha...
# questions
l
Hi Kedro community ๐Ÿ™‚ If I have two modular pipelines and one has a dependency on the other (eg,
pipe2
depends on an output from
pipe1
), will they run in the correct order always, ie,
pipe1
->
pipe2
? If they were regular pipelines I know they will, but Iโ€™m not sure about modular_pipelines (tho I canโ€™t imagine why they would be different) Mock code below:
Copy code
pipe1 = modular_pipeline.pipeline(
        pipe=func,
        namespace="pipe1_ns"
        inputs={"input":"pipe1_ns.input"}
    )
    pipe2 = modular_pipeline.pipeline(
        pipe=func,
        namespace="pipe2_ns"
        inputs={"input":"pipe1_ns.output"}
    )
d
Yes,
pipe1 + pipe2
will run in the correct order.
๐Ÿ‘ 1
thankyou 1
n
It should, order are always determined by the data. You can also verify by doing
kedro viz
and expand the graph to see the order.
๐Ÿ‘ 1
thankyou 1