StoredResultsCount

toloka.client.conditions.StoredResultsCount | Source code

StoredResultsCount(
self,
operator: CompareOperator,
value: Optional[int] = None
)

Deprecated. The number of times a Toloker entered captcha.

StoredResultsCount is used with collectors:

Examples:

pool = toloka.client.pool.Pool()
pool.set_captcha_frequency('MEDIUM')
pool.quality_control.add_action(
collector=toloka.client.collectors.Captcha(history_size=5),
conditions=[
toloka.client.conditions.FailRate > 40,
toloka.client.conditions.StoredResultsCount >= 3
],
action=toloka.client.actions.RestrictionV2(
scope='PROJECT', duration=15, duration_unit='DAYS'
)
)

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