Join Slack
Powered by
Hi folks, I would like to pass the current date to...
# questions
j
Jannik Wiedenhaupt
12/04/2024, 12:07 AM
Hi folks, I would like to pass the current date to my kedro pipelines at multiple steps. What is the best way to do this?
h
Hall
12/04/2024, 12:07 AM
Someone will reply to you shortly. In the meantime, this might help:
r
Ravi Kumar Pilla
12/04/2024, 1:13 AM
Hi
@Jannik Wiedenhaupt
, You can make use of
parameters
defined in your configuration + a
custom resolver
or pass the
parameter at run time
Thank you
👍 1
m
marrrcin
12/04/2024, 10:52 AM
Create a node that generates a date and pass it as inputs to all other nodes 🙂
marrrcin
12/04/2024, 10:52 AM
Optionally, I would consider writing a hook, but adding a node is simpler
m
Matthias Roels
12/04/2024, 6:39 PM
How about a custom resolver like the example in the docs?
https://docs.kedro.org/en/stable/configuration/advanced_configuration.html#how-to-use-resolvers-in-the-omegaconfigloader
j
Jannik Wiedenhaupt
12/06/2024, 6:25 AM
Thank you guys! The custom resolver looks intuitive!
Open in Slack
Previous
Next