CreateTasksParameters

toloka.client.task.CreateTasksParameters | Source code

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

Parameters used with the create_tasks method.

If the operation is started in an asynchronous mode, we recommend that you send the operation_id to avoid creating the same tasks multiple times. You can use this ID later to get information about the operation.

Parameters Description

ParametersTypeDescription
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.

operation_idOptional[UUID]

The ID of the operation conforming to the RFC4122 standard. Use it if the async_mode is set to True.

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.

async_modeOptional[bool]

Request processing mode:

  • True — Asynchronous operation is started internally and create_tasks waits for the completion of it. It is recommended to create no more than 10,000 tasks per request in this mode.
  • False — The request is processed synchronously. A maximum of 5000 tasks can be added in a single request in this mode.

Default value: False.

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