Skip to content
Snippets Groups Projects

A small fixes of init_cmd and locally launched commands

Merged Martin Šurkovský requested to merge fixes into main
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -128,7 +128,7 @@ def start_process(
workdir = os.getcwd()
workdir = os.path.abspath(workdir)
init_cmd = init_cmd if init_cmd is not None else init_cmd
init_cmd = init_cmd if init_cmd is not None else []
init_cmd = list(init_cmd)
if modules is not None:
init_cmd += [f"ml {' '.join(modules)}"]
@@ -160,7 +160,7 @@ ps -ho pgid $!
""".strip()
cmd_args = []
if host:
if not is_local(host):
cmd_args += ["ssh", host]
else:
cmd_args += ["setsid"]
Loading