Yair Camborda Morocho
07/26/2024, 11:29 AMsettings.py? The purpose is to choose which Hooks to add depending on the active environment.
For example, in pseudocode:
if env == "base":
    HOOKS = (PerformanceProfilingHooks(), MlFlow())
elif env == "cake":
    HOOKS = (PerformanceProfilingHooks(),)
else:
    HOOKS = []datajoely
07/26/2024, 12:28 PMsettings.py happens before the env is created… however you can set your env via the KEDRO_ENV environment variable, so you could do that and pick it up in this logic toomarrrcin
07/26/2024, 1:58 PMafter_context_created and internal field self._enabled (or similar) that will enable or disable the hook based on some config / condition.Yair Camborda Morocho
07/26/2024, 1:59 PMmarrrcin
07/26/2024, 2:00 PMafter_context_created