Allow `distributed.wait` to raise errors if futures fail
Open
enhancement
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 778
- Avg merge
- 2h 50m
- Merged PRs (30d)
- 3
Description
`distributed.wait` will always succeed, even if the futures it's waiting on fail. In some cases, this is desirable, but sometimes you'd like to know that the futures failed (and how).
We already check for cancellation: https://github.com/dask/distributed/blob/969aa4636bff9a4c9e1f3805fdaf9cc4d44ab1db/distributed/client.py#L4712-L4714
An `errors: Literal["ignore" | "raise"] = "ignore"` parameter (similar to the `errors=` parameter to [`Client.gather`](https://github.com/dask/distributed/blob/969aa4636bff9a4c9e1f3805fdaf9cc4d44ab1db/distributed/client.py#L2157)) might be nice. If any future had errored, we'd then raise its exception.
Contributor guide
Assessment
This issue has not been assessed yet.