Toloka documentation

ChangeOverlap

toloka.client.actions.ChangeOverlap | Source code

ChangeOverlap(
    self,
    *,
    delta: Optional[int] = None,
    open_pool: Optional[bool] = None
)

Increases the overlap of a task.

You can use this rule only with UsersAssessment and AssignmentsAssessment collectors.

Parameters Description

Parameters Type Description
delta Optional[int]

An overlap increment.

open_pool Optional[bool]
  • True — Open the pool after changing the overlap value.
  • False — Don't reopen the pool if it is closed.

Examples:

The example shows how to increase task overlap when you reject assignments.

new_pool = toloka.pool.Pool(....)
new_pool.quality_control.add_action(
    collector=toloka.collectors.AssignmentsAssessment(),
    conditions=[toloka.conditions.AssessmentEvent == toloka.conditions.AssessmentEvent.REJECT],
    action=toloka.actions.ChangeOverlap(delta=1, open_pool=True),
)