Skip to content

Commit 6b1a1d9

Browse files
committed
get_or_create_conda_env now returns an environment object
1 parent ec8cece commit 6b1a1d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlflow_slurm/slurm_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ def run(self, project_uri: str, entry_point: str, params: dict, version: str,
187187
tracking.MlflowClient().set_tag(active_run.info.run_id, MLFLOW_PROJECT_ENV,
188188
"conda")
189189
command_separator = " && "
190-
conda_env_name = get_or_create_conda_env(project.env_config_path)
191-
command_args += get_conda_command(conda_env_name)
190+
conda_env = get_or_create_conda_env(project.env_config_path)
191+
command_args += conda_env.get_activate_command()
192192
else:
193193
_logger.fatal(f"Unknown project environment type provided: {project.env_type}")
194194
return None

0 commit comments

Comments
 (0)