CreateTasksParameters

toloka.client.task.CreateTasksParameters | Source code

CreateTasksParameters(
self,
*,
operation_id: Optional[UUID] = ...,
async_mode: Optional[bool] = True,
allow_defaults: Optional[bool] = None,
open_pool: Optional[bool] = None,
skip_invalid_items: Optional[bool] = None
)

Parameters used with the create_tasks

and create_tasks_async methods.

Parameters description

ParametersTypeDescription
operation_idOptional[UUID]

The UUID of the operation that conforms to the RFC4122 standard. The UUID is used if async_mode is True.

Specify UUID to avoid accidental errors like Toloka operation duplication caused by network problems. If you send several requests with the same operation_id, Toloka performs the operation only once.

async_modeOptional[bool]

Request processing mode:

  • True — Asynchronous operation is started internally.
  • False — The request is processed synchronously.

Default value: True.

allow_defaultsOptional[bool]

Active overlap setting:

  • True — Use the overlap that is set in the defaults.default_overlap_for_new_tasks pool parameter.
  • False — Use the overlap that is set in the overlap task parameter.

Default value: False.

open_poolOptional[bool]

Open the pool immediately after creating a task suite, if the pool is closed.

Default value: False.

skip_invalid_itemsOptional[bool]

Task validation option:

  • True — All valid tasks are added. If a task does not pass validation, then it is not added to Toloka. All such tasks are listed in the response.
  • False — If any task does not pass validation, then the operation is cancelled and no tasks are added to Toloka.

Default value: False.

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