Skip to content

Commit e7616a3

Browse files
authored
Fix: Lambda backend instance unreachable after dstack server restart (#2946)
Co-authored-by: Bihan Rana
1 parent d7f6028 commit e7616a3

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

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

0 commit comments

Comments
 (0)