Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid Client._handle_report cancelling itself on Client._close
in dask#4617 and dask#5666 a asyncio.gather call isn't correctly waited on and logs the following asyncio unhandled error: ``` _GatheringFuture exception was never retrieved future: <_GatheringFuture finished exception=CancelledError()> asyncio.exceptions.CancelledError ``` this exception is happening because on reconnect `_close` cancels itself before calling gather: https://github.com/dask/distributed/blob/feac52b49292781e78beff8226407f3a5f2e563e/distributed/client.py#L1335-L1343 `_handle_report()` calls `_reconnect()` calls `_close()` which then cancels itself (edited) `self.coroutines` can only ever contain 1 task - `_handle_report` and so can be removed in favour of explicitly tracking the `_handle_report` task.
- Loading branch information