Skip to content

utils

utils

Shared constants and enums for the generation pipeline.

Classes:

Name Description
GenerationStatus

Status of a generation job.

GenerationStatus

Bases: StrEnum

Status of a generation job.

Attributes:

Name Type Description
COMPLETE

All target records were generated successfully.

INCOMPLETE

Generation ended before reaching the target count.

IN_PROGRESS

Generation is still running.

STOP_NO_RECORDS

Stopped because a batch produced zero valid records.

STOP_METRIC_REACHED

Stopped because the invalid-fraction threshold was exceeded for too many consecutive batches.