patch_task_overlap_or_min

toloka.async_client.client.AsyncTolokaClient.patch_task_overlap_or_min | Source code

Stops assigning a task to Tolokers.

Parameters Description

ParametersTypeDescription
task_idstr

The ID of the task.

overlapOptional[int]

The new overlap value.

infinite_overlapOptional[bool]
  • True — The task is assigned to all Tolokers. It is usually set for training and control tasks.
  • False — An overlap value specified for the task or for the pool is used.

Default value: False.

  • Returns:

    The task with updated fields.

  • Return type:

    Task

Examples:

Setting an infinite overlap for a training task.

toloka_client.patch_task_overlap_or_min(task_id='1', infinite_overlap=True)
Note

You can't set infinite overlap in a regular pool.

Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming