run_params['runner'] 传递给 hooks 的值为 'None' 或具有内存地址的 repr,从来不是 runner 名称
作者: Rodrigo-Palma创建于 2026年9月24日更新于 2026年9月25日
标签Community
- Register a hook in
settings.py:
from kedro.framework.hooks import hook_impl
class ShowRunner:
@hook_impl
def before_pipeline_run(self, run_params, pipeline, catalog):
print("run_params['runner'] =", repr(run_params["runner"]))
HOOKS = (ShowRunner(),)- Run the pipeline three ways:
内容来源: kedro-org/kedro