You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Important. Save a reference to the result of this function, to avoid a task disappearing mid-execution. The event loop only keeps weak references to tasks. A task that isn’t referenced elsewhere may get garbage collected at any time, even before it’s done.
I think we should either await those, save a reference to them, or add a comment to the code explaining why it isn't necessary.
The text was updated successfully, but these errors were encountered:
Bug description
There are some calls to
asyncio.ensure_future(...)
that aren't awaited:kubespawner/kubespawner/spawner.py
Lines 2803 to 2805 in 621be0e
kubespawner/kubespawner/spawner.py
Lines 3252 to 3257 in 621be0e
kubespawner/kubespawner/spawner.py
Lines 3379 to 3382 in 621be0e
The docs for
asyncio.ensure_future
say the resulting Task will be scheduled, but also saysasyncio.create_task()
has a longer explanationI think we should either await those, save a reference to them, or add a comment to the code explaining why it isn't necessary.
The text was updated successfully, but these errors were encountered: