https://kedro.org/ logo
#questions
Title
# questions
d

Dotun O

04/11/2023, 7:27 PM
Hi team, is there a quick way to get all the node names (across multiple groups) for a pipeline run programmatically ?
k

Kenny B

04/11/2023, 7:39 PM
d

Deepyaman Datta

04/11/2023, 7:49 PM
Why can't you just use the
pipeline.nodes
property?
d

Dotun O

04/11/2023, 7:50 PM
Oh did not know I could do that. I am trying to get all the nodes in the on_node_error function. Will pipeline.nodes include all the nodes (run/unrun nodes) here? @Deepyaman Datta
you'd have to instantiate the pipeline variable
👍 1
maybe you want to look at other hook specs like pipeline specs: https://docs.kedro.org/en/stable/kedro.framework.hooks.specs.html
d

Deepyaman Datta

04/11/2023, 9:24 PM
Will pipeline.nodes include all the nodes (run/unrun nodes) here? @Deepyaman Datta
Yes
you'd have to instantiate the pipeline variable
Yeah, you could instantiate it once in the
before_pipeline_run
hook or something
d

Dotun O

04/12/2023, 4:09 PM
Wanted to revert that these steps worked for me. Thanks
👍 1
2 Views