TaskSuite

toloka.client.task_suite.TaskSuite | Source code

TaskSuite(
self,
*,
infinite_overlap=None,
overlap=None,
pool_id: Optional[str] = None,
tasks: Optional[List[BaseTask]] = ...,
reserved_for: Optional[List[str]] = None,
unavailable_for: Optional[List[str]] = None,
issuing_order_override: Optional[float] = None,
mixed: Optional[bool] = None,
traits_all_of: Optional[List[str]] = None,
traits_any_of: Optional[List[str]] = None,
traits_none_of_any: Optional[List[str]] = None,
longitude: Optional[float] = None,
latitude: Optional[float] = None,
id: Optional[str] = None,
remaining_overlap: Optional[int] = None,
automerged: Optional[bool] = None,
created: Optional[datetime] = None
)

A set of tasks assigned to a Toloker at once.

A task suite contains one or more tasks. Tolokers are paid after completing all tasks in a task suite.

Parameters description

ParametersTypeDescription
pool_idOptional[str]

The ID of a pool that the task suite belongs to.

tasksOptional[List[BaseTask]]

The tasks.

reserved_forOptional[List[str]]

IDs of Tolokers who have access to the task suite.

unavailable_forOptional[List[str]]

IDs of Tolokers who don't have access to the task suite.

issuing_order_overrideOptional[float]

The priority of a task suite. It influences the order of assigning task suites to Tolokers in pools with the issue_task_suites_in_creation_order parameter set to True. Allowed range: from -99999.99999 to 99999.99999.

mixedOptional[bool]

The way of grouping tasks to create the task suite.

  • True — The tasks are mixed automatically using the smart mixing approach.
  • False — The tasks are grouped manually.

Default value: False.

traits_all_ofOptional[List[str]]

The task suite can be assigned to Tolokers who have all of the specified traits.

traits_any_ofOptional[List[str]]

The task suite can be assigned to Tolokers who have any of the specified traits.

traits_none_of_anyOptional[List[str]]

The task suite can not be assigned to Tolokers who have any of the specified traits.

longitudeOptional[float]

The longitude of the point on the map for the task suite.

latitudeOptional[float]

The latitude of the point on the map for the task suite.

idOptional[str]

The ID of the task suite. Read-only field.

remaining_overlapOptional[int]

The number of times left for this task suite to be assigned to Tolokers. Read-only field.

automergedOptional[bool]
  • True — The task suite was created after merging tasks.
  • False — There are no merged tasks in the task suite.
createdOptional[datetime]

The UTC date and time when the task suite was created. Read-only field.

Methods summary

MethodDescription
add_base_taskNone

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