Toloka documentation

PoolCloneOperation

toloka.client.operations.PoolCloneOperation | Source code

PoolCloneOperation(
    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,
    parameters: Optional[PoolOperation.Parameters] = None,
    details: Optional[Details] = None
)

Operation returned by an asynchronous cloning pool via TolokaClient.clone_pool_async()

As parameters.pool_id contains id of the pool that needs to be cloned. New pool id stored in details.pool_id. Don't be mistaken.

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.

parameters Optional[PoolOperation.Parameters]

Operation parameters (depending on the operation type).

details Optional[Details]

Details of the operation completion.

pool_id -

On which pool operation is performed.

pool_id -

New pool id created after cloning.