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

Jan

12/02/2022, 8:17 AM
Hi! I'm trying to this run_only_missing Example. However, in the docs it says I need to supply a _hook_manager_. I setup hooks (even though I don't need them at the moment) but I don't know what exactly to supply to the
run_only_missing
as _hook_manager._ Can anyone assist? 🙂
✅ 1
n

Nok Lam Chan

12/02/2022, 11:08 AM
Hi @Jan, this should work.
Copy code
from kedro.framework.hooks.manager import _NullPluginManager
hook_manager = _NullPluginManager()
As a side note, using Kedro with project mode, i.e.
kedro run
and
KedroSession
is the more preferred way
Recently there is a draft PR to enable a similar feature for KedroSession. We are currently trying to gather requirements and redesign this feature, would love to hear your comment on this too. The goal of this is to have a more efficient way for deployment, particularly with interactive workflow (i.e. Notebook) https://github.com/kedro-org/kedro/issues/2057
j

Jan

12/02/2022, 12:26 PM
Thanks, it's working! Yes, I am using kedro run and KedroSession usually, but I noticed that this particular functionality is not available there. Great to see that this is being investigated. I will have a look 🙂
✅ 1
n

Nok Lam Chan

12/02/2022, 2:02 PM
Awesome😄
4 Views