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

marrrcin

08/31/2023, 10:58 AM
Is there a hook / a good place to attach some code after all pipelines have been registered but before the execution starts? I would like to do this for the sake of performing some validations on the pipeline definitions (w.r.t node tags)?
First thing that comes to my mind is the
register_pipelines
but then it’s specific to project - I would like to do this on a plugin level.
d

datajoely

08/31/2023, 12:10 PM
I wonder if the
after_context_created
hook would let you mutate this
but it doesn’t feel super nice
m

marrrcin

08/31/2023, 12:23 PM
Are the pipelines available on the
after_context_created
level?
d

datajoely

08/31/2023, 12:24 PM
no you’re right
before_pipeline_run
maybe
m

marrrcin

08/31/2023, 1:52 PM
Yeah, but I will not be executing the pipeline
Maybe there should be another hook, like
after/before_pipelines_registered
? 🤔
d

datajoely

08/31/2023, 1:52 PM
I really like that
create an issue? even raise a PR?
m

marrrcin

08/31/2023, 1:53 PM
Sure thing, will do tomorrow