Skip to content

Commit

Permalink
Merge pull request #154 from clkao/pending-pods
Browse files Browse the repository at this point in the history
Pending pods cause inconsistent state after timeout
  • Loading branch information
minrk committed May 7, 2018
2 parents 54730e7 + 18ed892 commit 6d5993c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kubespawner/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,8 @@ def poll(self):
yield self.pod_reflector.first_load_future
data = self.pod_reflector.pods.get(self.pod_name, None)
if data is not None:
if data.status.phase == 'Pending':
return None
for c in data.status.container_statuses:
# return exit code if notebook container has terminated
if c.name == 'notebook':
Expand Down

0 comments on commit 6d5993c

Please sign in to comment.