vivecalindahl
03/28/2022, 1:18 PM[...]
node(
name="process",
func="process_fcn",
inputs=dict(
df="data_at_filepath",
df_info="${DATA_INFO}"
),
[...]
)
where DATA_INFO
would be an environment variable. However, AFAICT I can't inject an environment variable like this, the globals dict is not available (?). The two solutions I see are
1) just using os.getenv
inside of the function process_fcn
or
2) instead make the data info a parameter, refer to it as param:data_info
and pass it in via kedro run --params data_info:<something>
.
Or is there a better way?
This looks pretty similar to what I'm asking about: https://github.com/kedro-org/kedro/issues/1076datajoely
03/28/2022, 1:20 PMvivecalindahl
03/28/2022, 1:25 PM