File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/dstack/_internal/core/backends Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -184,10 +184,11 @@ def _launch_runner(
184184 ssh_private_key : str ,
185185 launch_command : str ,
186186):
187+ daemonized_command = f"{ launch_command .rstrip ('&' )} >/tmp/dstack-shim.log 2>&1 & disown"
187188 _run_ssh_command (
188189 hostname = hostname ,
189190 ssh_private_key = ssh_private_key ,
190- command = launch_command ,
191+ command = daemonized_command ,
191192 )
192193
193194
Original file line number Diff line number Diff line change @@ -206,10 +206,11 @@ def _launch_runner(
206206 ssh_private_key : str ,
207207 launch_command : str ,
208208):
209+ daemonized_command = f"{ launch_command .rstrip ('&' )} >/tmp/dstack-shim.log 2>&1 & disown"
209210 _run_ssh_command (
210211 hostname = hostname ,
211212 ssh_private_key = ssh_private_key ,
212- command = launch_command ,
213+ command = daemonized_command ,
213214 )
214215
215216
You can’t perform that action at this time.
0 commit comments