Skip to content

Commit

Permalink
Merge pull request #467 from ondave/master
Browse files Browse the repository at this point in the history
Wrap concurrent.futures Future in polling function
  • Loading branch information
minrk committed Dec 14, 2020
2 parents 96131a8 + 5bd5eec commit e465355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubespawner/spawner.py
Expand Up @@ -1642,7 +1642,7 @@ async def poll(self):
"""
# have to wait for first load of data before we have a valid answer
if not self.pod_reflector.first_load_future.done():
await self.pod_reflector.first_load_future
await asyncio.wrap_future(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':
Expand Down

0 comments on commit e465355

Please sign in to comment.