Toloka documentation

UserBonusCreateBatchOperation

toloka.client.operations.UserBonusCreateBatchOperation | Source code

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

Operation returned by an asynchronous creating user bonuses via TolokaClient.create_user_bonuses_async()

All parameters are for reference only and describe the initial parameters of the request that this operation monitors.

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[Parameters]

Operation parameters (depending on the operation type).

details Optional[Details]

Details of the operation completion.

skip_invalid_items -

Validation parameters for JSON objects:

  • True - Create the user bonuses that passed validation. Skip the rest of the user bonuses.
  • False - If at least one of the user bonus didn't pass validation, stop the operation and don't create any user bonus.

pool_id -

total_count -

The number of bonuses in the request.

valid_count -

The number of JSON objects with bonus information that have passed validation.

not_valid_count -

The number of JSON objects with bonus information that failed validation.

success_count -

Number of bonuses issued.

failed_count -

The number of bonuses that were not issued.