toloka.async_client.client.AsyncTolokaClient.create_tasks_async
| Source code
Creates tasks in Toloka asynchronously.
You can send a maximum of 100,000 requests of this kind per minute and a maximum of 2,000,000 requests per day.
See also the create_tasks method.
Parameters | Type | Description |
---|---|---|
tasks | List[Task] | A list of tasks to be created. |
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. Default value: |
operation_id | Optional[UUID] | The ID of the operation conforming to the RFC4122 standard. Use it if the |
skip_invalid_items | Optional[bool] | Task validation option:
Default value: |
async_mode | Optional[bool] | Request processing mode:
Default value: |
Returns:
An object to track the progress of the operation.
Return type:
Examples:
training_tasks = [ toloka.client.Task(input_values={'image': 'https://some.url/img0.png'}, pool_id='1'), toloka.client.Task(input_values={'image': 'https://some.url/img1.png'}, pool_id='1')]tasks_op = toloka_client.create_tasks_async(training_tasks)toloka_client.wait_operation(tasks_op)