dask / dask/distributed

Allow `distributed.wait` to raise errors if futures fail

Open
#6,885 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.