forked from dask/distributed
-
Notifications
You must be signed in to change notification settings - Fork 0
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 (dask#…
…5672) 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
Showing
2 changed files
with
46 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters