Vandana Malik05/02/2023, 9:34 AM
HOOKS = (ProjectHooks(),DataValidationHook()) CONTEXT_CLASS = ProjectContext
Can you guide me where I can look or modify in order to check why hooks are not running
class ProjectContext(KedroContext): """Project context. Users can override the remaining methods from the parent class here, or create new ones (e.g. as required by plugins) """ hooks = ProjectHooks() def __init__( self, package_name: str, project_path: Union[Path, str], env: str = None, extra_params: Dict[str, Any] = None, ): """Init class.""" super().__init__(package_name, project_path, env, extra_params) self.hooks = DataValidationHook() self._spark_session = None self._experiment_tracker = None self._setup_env_variables() self._init_common_env_vars() self.init_spark_session()
Juan Luis05/02/2023, 4:13 PM
. in addition, I you'd need to define your own standalone class rather than subclassing the
. could you verify if any of the examples here https://docs.kedro.org/en/0.17.3/07_extend_kedro/02_hooks.html helps?