Revert "[autoscaler] Fix redirects, fix submit (#4085)" (#4158)

This reverts commit acf4d53b55.
This commit is contained in:
Eric Liang
2019-02-25 17:00:59 -08:00
committed by GitHub
parent 3896b726dd
commit 60dbc771a2
3 changed files with 11 additions and 27 deletions
+3 -8
View File
@@ -610,11 +610,6 @@ def rsync_up(cluster_config_file, source, target, cluster_name):
@cli.command()
@click.argument("cluster_config_file", required=True, type=str)
@click.option(
"--docker",
is_flag=True,
default=False,
help="Runs command in the docker container specified in cluster_config.")
@click.option(
"--stop",
is_flag=True,
@@ -642,8 +637,8 @@ def rsync_up(cluster_config_file, source, target, cluster_name):
"--port-forward", required=False, type=int, help="Port to forward.")
@click.argument("script", required=True, type=str)
@click.argument("script_args", required=False, type=str, nargs=-1)
def submit(cluster_config_file, docker, screen, tmux, stop, start,
cluster_name, port_forward, script, script_args):
def submit(cluster_config_file, screen, tmux, stop, start, cluster_name,
port_forward, script, script_args):
"""Uploads and runs a script on the specified cluster.
The script is automatically synced to the following location:
@@ -660,7 +655,7 @@ def submit(cluster_config_file, docker, screen, tmux, stop, start,
rsync(cluster_config_file, script, target, cluster_name, down=False)
cmd = " ".join(["python", target] + list(script_args))
exec_cluster(cluster_config_file, cmd, docker, screen, tmux, stop, False,
exec_cluster(cluster_config_file, cmd, screen, tmux, stop, False,
cluster_name, port_forward)