Toloka documentation


toloka.client.collectors.AssignmentSubmitTime | Source code

    uuid: Optional[UUID] = None,
    fast_submit_threshold_seconds: Optional[int] = None,
    history_size: Optional[int] = None

Filtering cheating performers who respond too quickly

Helpful when you need to:

  • Use this Restrict the pool access for performers who respond too quickly.
  • Provide protection from robots.

Used with conditions:

  • TotalSubmittedCount - The number of assignments a specific performer completed.
  • FastSubmittedCount - The number of assignments a specific performer completed too fast.

Used with actions:

  • RestrictionV2 - Block access to projects or pools.
  • ApproveAllAssignments - Approve all replies from the performer.
  • RejectAllAssignments - Reject all replies from the performer.
  • SetSkill - Set perfmer skill value.

Parameters Description

Parameters Type Description
fast_submit_threshold_seconds Optional[int]

The task suite completion time (in seconds). Everything that is completed faster is considered a fast response.

history_size Optional[int]

The number of the recent task suites completed by the performer.


How to reject all assignments if performer sends answers too fast.

new_pool = toloka.pool.Pool(....)
    collector=toloka.collectors.AssignmentSubmitTime(history_size=5, fast_submit_threshold_seconds=20),
    conditions=[toloka.conditions.FastSubmittedCount > 3],
    action=toloka.actions.RejectAllAssignments(public_comment='Too fast answering. You are cheater!')