toloka.async_client.client.AsyncTolokaClient.create_task_suites_async
| Source code
Creates several task suites in Toloka asynchronously.
You can send a maximum of 100,000 requests of this kind per minute and 2,000,000 requests per day. It is recommended that you create no more than 10,000 task suites in a single request.
See also the create_task_suites method.
Parameters | Type | Description |
---|---|---|
task_suites | List[TaskSuite] | A list of task suites to be created. |
operation_id | Optional[UUID] | The ID of the operation conforming to the RFC4122 standard. Use it if the |
skip_invalid_items | Optional[bool] | Task suite validation option:
Default value: |
allow_defaults | Optional[bool] | Active overlap setting:
Default value: |
open_pool | Optional[bool] | Open the pool immediately after creating a task suite, if the pool is closed. |
async_mode | Optional[bool] | Request processing mode:
Default value: |
Returns:
An object to track the progress of the operation.
Return type:
Examples:
task_suites = [ toloka.client.TaskSuite( pool_id='1', overlap=1, tasks=[ toloka.client.Task(input_values={ 'question': 'Choose a random country' }) ] )]task_suites_op = toloka_client.create_task_suites_async(task_suites)toloka_client.wait_operation(task_suites_op)