From ffe61fcc70ac0c4ae1dd9441507679303ae6cde0 Mon Sep 17 00:00:00 2001 From: Richard Liaw Date: Thu, 16 May 2019 23:10:07 -0700 Subject: [PATCH] [tune] Support non-arg submit (#4803) --- python/ray/scripts/scripts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/ray/scripts/scripts.py b/python/ray/scripts/scripts.py index 1951af208..9489cd2ae 100644 --- a/python/ray/scripts/scripts.py +++ b/python/ray/scripts/scripts.py @@ -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)