PendingAssignmentsCount

toloka.client.conditions.PendingAssignmentsCount | Source code

PendingAssignmentsCount(
self,
operator: CompareOperator,
value: Optional[int] = None
)

The number of pending assignments that must be checked.

PendingAssignmentsCount is used with collectors:

Examples:

pool = toloka.client.pool.Pool()
pool.quality_control.add_action(
collector=toloka.client.collectors.AssignmentsAssessment(),
conditions=[toloka.client.conditions.PendingAssignmentsCount < 5],
action=toloka.client.actions.ChangeOverlap(delta=1, open_pool=True),
)

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming