Skip to content

Status

Status-related models for tracking state and status.


Status

Bases: StrEnum

Enumeration of execution status values.

is_complete

is_complete()

Check if the status represents a terminal state.

Returns:

Type Description
bool

True if the status is COMPLETED, FAILED, or ABORTED.

Source code in src/aibs_informatics_core/models/status.py
14
15
16
17
18
19
20
def is_complete(self) -> bool:
    """Check if the status represents a terminal state.

    Returns:
        True if the status is COMPLETED, FAILED, or ABORTED.
    """
    return self == Status.COMPLETED or self == Status.FAILED or self == Status.ABORTED