Skip to content

Progress

JobProgress dataclass #

JobProgress(
    state: str,
    completion_percentage: float,
    recruiting: RecruitingMetrics | None,
)

A snapshot of how far along a job is.

completion_percentage tracks the labeling itself, while recruiting (present only for custom audiences) tells you about the annotator pool behind it — together they let you tell normal labeling from a job that is waiting on recruiting or has stalled.

Attributes:

Name Type Description
state str

The job's current state, the same value returned by 🇵🇾meth:RapidataJob.get_status.

completion_percentage float

How much of the requested labeling is done, from 0 to 100.

recruiting RecruitingMetrics | None

The recruiting-funnel snapshot for the job's audience, or None for curated audiences (which do not recruit their own pool).