[tune] Support non-arg submit (#4803)

This commit is contained in:
Richard Liaw
2019-05-16 23:10:07 -07:00
committed by GitHub
parent 84cf474abc
commit ffe61fcc70
+4 -1
View File
@@ -609,7 +609,10 @@ def submit(cluster_config_file, docker, screen, tmux, stop, start,
target = os.path.join("~", os.path.basename(script))
rsync(cluster_config_file, script, target, cluster_name, down=False)
cmd = " ".join(["python", target, args])
command_parts = ["python", target]
if args is not None:
command_parts += [args]
cmd = " ".join(command_parts)
exec_cluster(cluster_config_file, cmd, docker, screen, tmux, stop, False,
cluster_name, port_forward)