Skip to content

Commit

Permalink
Test patch from jupyterhub#254.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlovett committed Apr 22, 2023
1 parent d5f9a0b commit 470c0dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions batchspawner/batchspawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,13 @@ async def start(self):
# don't actually run the single-user server yet.
if hasattr(self, "mock_port"):
self.port = self.mock_port
# Check if job is still running
status = await self.poll()
if status:
raise RuntimeError(
"The Jupyter batch job started"
" but died before launching the single-user server."
)

self.db.commit()
self.log.info(
Expand Down

0 comments on commit 470c0dc

Please sign in to comment.