mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 20:24:03 +08:00
[tune] Support non-arg submit (#4803)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user