Skip to content

Commit

Permalink
Assign run id when saving a model
Browse files Browse the repository at this point in the history
  • Loading branch information
Mind committed Apr 15, 2021
1 parent 6bbd93e commit f79a495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlflow/R/mlflow/R/model.R
Expand Up @@ -31,7 +31,7 @@ mlflow_log_model <- function(model, artifact_path, ...) {
temp_path <- fs::path_temp(artifact_path)
model_spec <- mlflow_save_model(model, path = temp_path, model_spec = list(
utc_time_created = mlflow_timestamp(),
run_id = mlflow_get_active_run_id(),
run_id = mlflow_get_active_run_id_or_start_run(),
artifact_path = artifact_path,
flavors = list()
), ...)
Expand Down

0 comments on commit f79a495

Please sign in to comment.