open_training_async

toloka.async_client.client.AsyncTolokaClient.open_training_async | Source code

async open_training_async(self, training_id: str)

Opens a training. Sends an asynchronous request to Toloka.

Tasks from opened trainings can be assigned to Tolokers.

Parameters description

ParametersTypeDescription
training_idstr

The ID of the training.

  • Returns:

    An object to track the progress of the operation. If the training is already opened then None is returned.

  • Return type:

    Optional[TrainingOpenOperation]

Examples:

Opening a training.

open_op = toloka_client.open_training_async(training_id='1239110')
toloka_client.wait_operation(open_op)

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