Toloka documentation

close_training

toloka.client.TolokaClient.close_training | Source code

close_training(self, training_id: str)

Stops distributing tasks from the training

Parameters Description

Parameters Type Description
training_id str

ID of the training that will be closed.

  • Returns:

    Training object with new status.

  • Return type:

    Training

Examples:

open_training = next(toloka_client.get_trainings(status='OPEN'))
toloka_client.close_training(training_id=open_training.id)