mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
fix wait for spawn future
asyncio.wait takes a list
This commit is contained in:
@@ -349,7 +349,7 @@ class SpawnProgressAPIHandler(APIHandler):
|
|||||||
if spawner._spawn_pending:
|
if spawner._spawn_pending:
|
||||||
# wait for spawn_future to complete
|
# wait for spawn_future to complete
|
||||||
# (ignore errors, which will be logged elsewhere)
|
# (ignore errors, which will be logged elsewhere)
|
||||||
await asyncio.wait(spawn_future)
|
await asyncio.wait([spawn_future])
|
||||||
|
|
||||||
# progress and spawn finished, check if spawn succeeded
|
# progress and spawn finished, check if spawn succeeded
|
||||||
if spawner.ready:
|
if spawner.ready:
|
||||||
|
Reference in New Issue
Block a user