Skip to content

Commit

Permalink
fix deactivating
Browse files Browse the repository at this point in the history
  • Loading branch information
Galileo-Galilei committed Dec 13, 2024
1 parent 7daeade commit 7d2c716
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kedro_mlflow/framework/hooks/mlflow_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,15 @@ def before_pipeline_run(
pipeline_name=run_params["pipeline_name"],
),
)

add_run_id_to_artifact_datasets(catalog, mlflow.active_run().info.run_id)

else:
self._logger.info(
"kedro-mlflow logging is deactivated for this pipeline in the configuration. This includes DataSets and parameters."
)
switch_catalog_logging(catalog, False)

add_run_id_to_artifact_datasets(catalog, mlflow.active_run().info.run_id)

@hook_impl
def before_node_run(
self, node: Node, catalog: DataCatalog, inputs: Dict[str, Any], is_async: bool
Expand Down

0 comments on commit 7d2c716

Please sign in to comment.