Toloka documentation

SkippedInRowAssignments

toloka.client.collectors.SkippedInRowAssignments | Source code

SkippedInRowAssignments(self, *, uuid: Optional[UUID] = None)

Counts task suites skipped in a row by a Toloker.

Skipping tasks is considered an indirect indicator of quality of responses. You can block access to a pool or project if a Toloker skips multiple task suites in a row.

The collector can be used with conditions:

The collector can be used with actions:

Parameters Description

Parameters Type Description
uuid Optional[UUID]

The ID of a collector. Note that when you clone a pool, both pools start using the same collector, because it is not cloned. Usually, it is not an intended behavior. For example, in this case one collector gathers history size from both pools.

Examples:

The example shows how to block Toloker's access to the project for 15 days if he skipped more than 3 task suites in a row.

new_pool = toloka.pool.Pool(....)
new_pool.quality_control.add_action(
    collector=toloka.collectors.SkippedInRowAssignments(),
    conditions=[toloka.conditions.SkippedInRowCount > 3],
    action=toloka.actions.RestrictionV2(
        scope=toloka.user_restriction.UserRestriction.PROJECT,
        duration=15,
        duration_unit='DAYS',
        private_comment='Skips too many task suites in a row',
    )
)