Skip to content

Commit

Permalink
Fix escaping issue with "mlflow<=VERSION" installation in remote runs (
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondav committed Aug 27, 2018
1 parent b74f58b commit 43a9e63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlflow/projects/databricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def _run_shell_command_job(project_uri, command, env_vars, cluster_spec):
},
# NB: We use <= on the version specifier to allow running projects on pre-release
# versions, where we will select the most up-to-date mlflow version available.
"libraries": [{"pypi": {"package": "mlflow<=%s" % VERSION}}]
# Also note, that we escape this so '<' is not treated as a shell pipe.
"libraries": [{"pypi": {"package": "'mlflow<=%s'" % VERSION}}]
}
run_submit_res = _jobs_runs_submit(req_body_json)
databricks_run_id = run_submit_res["run_id"]
Expand Down

0 comments on commit 43a9e63

Please sign in to comment.