toloka.client.task_distribution_function.TaskDistributionFunction.Interval | Source code
Interval( self, *, from_: Optional[int] = None, to: Optional[int] = None, frequency: Optional[int] = None)A count interval with associated frequency value.
If the number of tasks is in the interval then the task distribution uses the interval frequency.
The value of the frequency parameter encodes a period in a task sequence.
For example, if frequency is 3, then the 1st, 4th, 7th tasks are selected. And so on.
| Parameters | Type | Description |
|---|---|---|
from_ | Optional[int] | The lower bound of the interval. Allowed values: up to 1,000,000. |
to | Optional[int] | The upper bound of the interval. Allowed values: up to 1,000,000. |
frequency | Optional[int] | The frequency of tasks within an interval. Allowed values: from 1 to 10,000,000. |
Last updated: August 28, 2023