PoolAccessRevokedReason

toloka.client.conditions.PoolAccessRevokedReason | Source code

PoolAccessRevokedReason(
self,
operator: IdentityOperator,
value: Union[Type, str, None] = None
)

The reason why a Toloker has lost access to a pool.

Possible values:

  • SKILL_CHANGE — The Toloker no longer meets one or more filters.
  • RESTRICTION — The Toloker's access to tasks is blocked by a quality control rule.

PoolAccessRevokedReason is used with collectors:

Examples:

pool = toloka.client.pool.Pool()
pool.quality_control.add_action(
collector=toloka.client.collectors.UsersAssessment(),
conditions=[toloka.client.conditions.PoolAccessRevokedReason ==
toloka.client.conditions.PoolAccessRevokedReason.RESTRICTION],
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