Skip to content

Commit ff1240f

Browse files
committed
BatchSpawnerBase: Store ip, port in self.server after connect_to_job
This is required since data may change after the connect_to_job function.
1 parent b56fc82 commit ff1240f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

batchspawner/batchspawner.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,11 @@ async def start(self):
588588
if self.connect_to_job_cmd:
589589
await self.connect_to_job()
590590

591+
# Port and ip can be changed in connect_to_job, push out to jupyterhub.
592+
if self.server:
593+
self.server.port = self.port
594+
self.server.ip = self.ip
595+
591596
self.db.commit()
592597
self.log.info(
593598
"Notebook server job {0} started at {1}:{2}".format(

0 commit comments

Comments
 (0)