Lets say I define lots of nodes and accompanying f...
# questions
m
Lets say I define lots of nodes and accompanying functions with a required argument that is the same between all of them. I might have the argument I want to pass saved as an environment variable. Is there a way I can define a hook to intercept the node at runtime and inject the argument as an input?
d
Do you want to explicitly pass this argument (like a Kedro parameter), or do you want to essentially customize node functions at runtime based on an environment variable? Both should be possible, just trying to understand
m
Second one I think
Guessing I'd define a
before_node_run
hook
r
Hi @Marshall Krassenstein that's correct. Here is a doc about the use case - https://docs.kedro.org/en/stable/hooks/common_use_cases.html#common-use-cases Thank you
m
I would rely on the
oc.env
from Omegaconf and Kedro params rather than implementing custom hook. What's the point of doing that?
👍 2