toloka.client.TolokaClient.archive_training_async | Source code
archive_training_async(self, training_id: str)
Sends training to archive, asynchronous version
The training must be in the status "closed". The archived training is not deleted. You can access it when you will need it.
ID of training that will be archived.
An operation upon completion of which you can get the training with updated status. If pool is already archived then None is returned.
closed_training = next(toloka_client.find_trainings(status='CLOSED')) archive_op = toloka_client.archive_training_async(training_id=closed_training.id) toloka_client.wait_operation(archive_op)