Dangling awaitable when shutting down asynchronous Client
Open
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 778
- Avg merge
- 2h 50m
- Merged PRs (30d)
- 3
Description
When shutting down an asynchronous client, `self.close()` might return a `NoOpAwaitable `(if for example the client has been manually closed). This however results in a dangling awaitable, giving warnings.
It's also strange that while a asynchronous client is 'closing', a `None` type is returned, and not a `NoOpAwaitable `.
https://github.com/dask/distributed/blob/40456b46598a1b096a580af6ad60c7bb6852a3b1/distributed/client.py#L1467-L1471
Contributor guide
Assessment
This issue has not been assessed yet.