open_training_async
toloka.client.TolokaClient.open_training_async
| Source code
open_training_async(self, training_id: str)
Starts distributing tasks from the training, asynchronous version
Parameters Description
Parameters | Type | Description |
---|---|---|
training_id |
str | ID of the training that will be started. |
-
Returns:
An operation upon completion of which you can get the training with new status. If training is already opened then None is returned.
-
Return type:
Optional[TrainingOpenOperation]
Examples:
Open the training for performers.
open_training = toloka_client.open_training_async(training_id='1')
toloka_client.wait_operation(open_training)