Hi team, is there a quick way to get all the node ...
# questions
d
Hi team, is there a quick way to get all the node names (across multiple groups) for a pipeline run programmatically ?
k
d
Why can't you just use the
pipeline.nodes
property?
d
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
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
Wanted to revert that these steps worked for me. Thanks
👍 1