Skip to content

Commit 1c3e09b

Browse files
authored
Fix: reset assigned_host to empty string to avoid NoneType IP during kernel restart (#142)
(We'll address the unrelated test failures another day.)
1 parent 700090a commit 1c3e09b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gateway_provisioners/yarn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,9 @@ async def cleanup(self, restart: bool = False) -> None:
240240
self.local_proc.wait()
241241
self.local_proc = None
242242

243-
# reset application id to force new query - handles kernel restarts/interrupts
243+
# reset application id and assigned host to force new query - handles kernel restarts/interrupts
244244
self.application_id = None
245+
self.assigned_host = ""
245246

246247
# for cleanup, we should call the superclass last
247248
await super().cleanup(restart=restart)

0 commit comments

Comments
 (0)