Skip to content

AlwaysFailure

dendron.actions.always_failure.AlwaysFailure

Bases: ActionNode

An action node that always returns FAILURE.

Parameters:

Name Type Description Default
name `str`

The given name of this node.

required
Source code in src/dendron/actions/always_failure.py
class AlwaysFailure(ActionNode):
    """
    An action node that always returns `FAILURE`.

    Args:
        name (`str`):
            The given name of this node.
    """
    def __init__(self, name : str) -> None:
        super().__init__(name)

    def tick(self) -> NodeStatus:
        """
        Always return `FAILURE`.
        """
        return NodeStatus.FAILURE

tick()

Always return FAILURE.

Source code in src/dendron/actions/always_failure.py
def tick(self) -> NodeStatus:
    """
    Always return `FAILURE`.
    """
    return NodeStatus.FAILURE