Skip to content

Commit b9ca0be

Browse files
Bihan  RanaBihan  Rana
authored andcommitted
Daemonize launch_command to solve dstack restart issue
1 parent f5f2f2e commit b9ca0be

File tree

1 file changed

+2
-1
lines changed
  • src/dstack/_internal/core/backends/hotaisle

1 file changed

+2
-1
lines changed

src/dstack/_internal/core/backends/hotaisle/compute.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)