toloka.client.TolokaClient.close_training
| Source code
close_training(self, training_id: str)
Closes a training.
Tasks from closed trainings are not assigned to Tolokers.
Parameters | Type | Description |
---|---|---|
training_id | str | The ID of the training to be closed. |
Returns:
The training with updated status.
Return type:
Examples:
opened_training = next(toloka_client.get_trainings(status='OPEN'))toloka_client.close_training(training_id=opened_training.id)
Last updated: August 28, 2023