[autoscaler] Create Docker Command Runner (v2) (#8840)

Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
Ian Rodney
2020-06-12 16:38:38 -07:00
committed by GitHub
parent ed77c8b16c
commit 0e82f0d7c3
7 changed files with 114 additions and 22 deletions
+3 -2
View File
@@ -847,8 +847,9 @@ def submit(cluster_config_file, docker, screen, tmux, stop, start,
if start:
create_or_update_cluster(cluster_config_file, None, None, False, False,
True, cluster_name)
target = os.path.join("~", os.path.basename(script))
target = os.path.basename(script)
if not docker:
target = os.path.join("~", target)
rsync(cluster_config_file, script, target, cluster_name, down=False)
command_parts = ["python", target]