dask / dask/distributed

Support returning exceptions for failed tasks in `Client.gather`

Open
#8,506 1 comment 0 reactions 0 assignees View on GitHub
enhancement good second issue help wanted
Dominant language
Python
Stars
1.7k
Forks
778
Avg merge
2h 50m
Merged PRs (30d)
3

Description

Currently the `errors=` kwarg for `Client.gather` supports either raising exceptions of failed tasks, or skipping them altogether. Today I ran into a case where it would have been convenient if we supported returning the actual exception that was raised in the gathered results. This is similar to what we already support in `Client.run` with `on_error="return"`

https://github.com/dask/distributed/blob/774874ebc4b1bea88d0df8288eb0ab67f39004fc/distributed/client.py#L2961-L2963

It'd be nice if we had something similar for `Cilent.gather`

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.