close_training

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 description

ParametersTypeDescription
training_idstr

The ID of the training to be closed.

  • Returns:

    The training with updated status.

  • Return type:

    Training

Examples:

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

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming