Toloka documentation

TrainingCloseOperation

toloka.client.operations.TrainingCloseOperation | Source code

TrainingCloseOperation(
    self,
    *,
    id: Optional[str] = None,
    status: Union[Operation.Status, str, None] = None,
    submitted: Optional[datetime] = None,
    started: Optional[datetime] = None,
    finished: Optional[datetime] = None,
    progress: Optional[int] = None,
    details: Optional[Any] = None,
    parameters: Optional[TrainingOperation.Parameters] = None
)

Operation returned by an asynchronous closing training pool via TolokaClient.close_training_async()

Parameters Description

Parameters Type Description
id Optional[str]

Operation ID.

status Optional[Operation.Status]

The status of the operation.

submitted Optional[datetime]

The UTC date and time the request was sent.

started Optional[datetime]

The UTC date and time the operation started.

finished Optional[datetime]

The UTC date and time the operation finished.

progress Optional[int]

The percentage of the operation completed.

details Optional[Any]

Details of the operation completion.

parameters Optional[TrainingOperation.Parameters]

Operation parameters (depending on the operation type).

training_id -

On which training pool operation is performed.