toloka.client.operations.Operation | Source code
Operation(self,*,id: Optional[str] = None,status: Union[Status, str, None] = None,submitted: Optional[datetime] = None,parameters: Optional[Parameters] = None,started: Optional[datetime] = None,finished: Optional[datetime] = None,progress: Optional[int] = None,details: Optional[Any] = None)
A base class for Toloka operations.
Some API requests start asynchronous operations in Toloka. Classes derived from
Operation are used to track them.
The examples of asynchronous operations are opening a pool, archiving a project, loading multiple tasks.
The ID of the operation.
The status of the operation.
The UTC date and time when the operation was requested.
Parameters of the request that started the operation.
The UTC date and time when the operation started.
The UTC date and time when the operation finished.
The operation progress as a percentage.
Details of the operation completion.
|is_completed||Checks whether the operation is completed either successfully or not.|
|raise_on_fail||Raises the |
Last updated: August 28, 2023