Hi Kedro Folks I have 2 hooks, one is `PipelineHoo...
# questions
a
Hi Kedro Folks I have 2 hooks, one is
PipelineHooks
and
MLFlowHooks
and both have
before_pipeline_run
. I need the hook
before_pipeline_run
defined in
PipelineHooks
to run before the one in
MLFlowHooks
. I've specified this order below in
settings.py
, but it doens't work:
Copy code
HOOKS = (
    PipelineHooks(),
    MLFlowHooks(),
)
Is there any way to keep an order of execution?
👀 1
j
Do you control the implementation of both? Or does one come from a plug-in?
a
I control the implementation of both.
d
Flip the order. 🙂
j
I just made a test locally and indeed, reversing the tuple works 👍🏼 @Afaque Ahmad let us know if that solves your need
a
Thanks so much @Deepyaman Datta @Juan Luis!