Skip to content

[Bug] Dependent Futures do not raise errors #566

@jan-janssen

Description

@jan-janssen

The error is only raised when the result() is evaluated, so when another function is waiting for the broken future object there is no error being raised.

from executorlib import SingleNodeExecutor

def get_error(lst):
    raise ValueError()

with SingleNodeExecutor() as exe:
    lst = []
    for i in range(1, 4):
        lst = exe.submit(
            get_error,
            lst=lst,
        )
    print(lst.result())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions