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

ParametersTypeDescription
deltaOptional[int]

An overlap increment.

open_poolOptional[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.client.pool.Pool()
new_pool.quality_control.add_action(
collector=toloka.client.collectors.AssignmentsAssessment(),
conditions=[toloka.client.conditions.AssessmentEvent == toloka.client.conditions.AssessmentEvent.REJECT],
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