Arnaud Dhaene
03/11/2024, 11:36 AM_setup_env_variables) and then access these environment variables in the instantiation of my custom Kedro hook, which I have added to settings.py with HOOKS = (CustomHook(),)
It seems like I am getting a KeyError as the wanted environment variables are not yet set when the Hook is instantiated... Is there any way around this?
TIA!Arnaud Dhaene
03/11/2024, 11:41 AMKedroSession? What are the implications?Merel
03/11/2024, 4:48 PMKedroContext ?
• How exactly are you setting the environment variables?
• What hook specifications are you using?Arnaud Dhaene
03/11/2024, 5:15 PMsession.load_context(), you will need to access those after initiation (e.g., before_pipeline_run and not in __init__Merel
03/11/2024, 5:20 PMArnaud Dhaene
03/11/2024, 9:28 PMHOOKS = ... in settings.py