Skip to content

[Bug] Batching for failed futures #1012

@jan-janssen

Description

@jan-janssen

If two futures f1 and f2 depend on each other, then we want f2 to fail when f1 raised and exception. This is currently handled by executorlib internally, without evaluating the function related to the second future f2.

For batched futures the case is not so simple. One option would be to move the failed futures to the end of the execution. But for the case when all futures fail, this would require all futures to be evaluated before the workflow breaks down. An alternative would be to return failed futures just like successful futures, as both of them are done.

Maybe the easiest way is for the user to decide by adding another parameter to the batched() function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions