Source code for simplebench.timeout.enums
"""Enums for the simplebench.timeout module."""
from enum import Enum
from ..enums import enum_docstrings
[docs]
@enum_docstrings
class TimeoutState(str, Enum):
"""Enums for the simplebench.timeout module."""
PENDING = "PENDING"
"""The operation is pending and has not started yet."""
FINISHED = "FINISHED"
"""The operation completed successfully within the time limit."""
RUNNING = "RUNNING"
"""The operation is currently in progress."""
TIMED_OUT = "TIMED_OUT"
"""The operation exceeded the allowed time limit."""
INTERRUPTED = "INTERRUPTED"
"""The operation was interrupted before completion."""
CANCELED = "CANCELED"
"""The operation was canceled before completion."""
FAILED = "FAILED"
"""The operation failed due to an exception other than timeout."""