Skip to content

ExpectedFailure interface #2619

Open
Open
@effigies

Description

@effigies

As a way of implementing conditionals, you could currently do something like:

def fail_on_true(check_val, pass_through_val):
    if check_val:
        raise Exception("Expected failure")
    return pass_through_val

exp_fail = Function(function=fail_on_true)

You could then insert this node before the node/sub-workflow you wish to skip on some condition.

If we promoted this to a proper interface, we could then check for it to avoid creating crash files and printing the error.

(From discussion with @tclose.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions