Skip to content

Support returning exceptions for failed tasks in Client.gather #8506

Open
@jrbourbeau

Description

@jrbourbeau

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"

return
Return the Exception object instead of the function output for
the worker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprove existing functionality or make things work bettergood second issueClearly described, educational, but less trivial than "good first issue".help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions