35 lines
1.6 KiB
Python
35 lines
1.6 KiB
Python
from enum import Enum
|
|
|
|
|
|
class ExperimentStatus(str, Enum):
|
|
"""
|
|
Status values for experiment run lifecycle.
|
|
|
|
This enum defines all possible status values that an experiment run can have
|
|
throughout its lifecycle, from initialization through training, model saving,
|
|
and cleanup. These statuses are used to track progress and identify failures
|
|
in the training pipeline.
|
|
|
|
The status values follow the naming convention from the original Mage pipeline
|
|
to maintain compatibility with existing database records and monitoring systems.
|
|
|
|
Attributes:
|
|
ORCHESTRATOR_VALIDATION_ERROR: Error in the parameters validation.
|
|
ORCHESTRATOR_WAITING_PROC: Initial status indicating experiment is registered and waiting for processing.
|
|
TRAINING_SUCCESS: Training completed successfully with model and metrics calculated.
|
|
TRAINING_ERROR: Training failed due to data issues, model errors, or other exceptions.
|
|
TRACKING_SENT: Model successfully saved to MLFlow.
|
|
TRACKING_SEND_ERROR: Model saving to MLFlow failed due to connection or serialization errors.
|
|
FILE_DELETED: Cleanup completed successfully with all artifacts removed.
|
|
FILE_DELETE_ERROR: Cleanup failed due to file system or MinIO errors.
|
|
"""
|
|
|
|
ORCHESTRATOR_VALIDATION_ERROR = 'ORCHESTRATOR_VALIDATION_ERROR'
|
|
ORCHESTRATOR_WAITING_PROC = 'ORCHESTRATOR_WAITING_PROC'
|
|
TRAINING_SUCCESS = 'TRAINING_SUCCESS'
|
|
TRAINING_ERROR = 'TRAINING_ERROR'
|
|
TRACKING_SENT = 'TRACKING_SENT'
|
|
TRACKING_SEND_ERROR = 'TRACKING_SEND_ERROR'
|
|
FILE_DELETED = 'FILE_DELETED'
|
|
FILE_DELETE_ERROR = 'FILE_DELETE_ERROR'
|