Toloka documentation

AppBatch

toloka.client.app.AppBatch | Source code

AppBatch(
    self,
    *,
    id: Optional[str] = None,
    app_project_id: Optional[str] = None,
    name: Optional[str] = None,
    status: Union[Status, str, None] = None,
    items_count: Optional[int] = None,
    item_price: Optional[Decimal] = None,
    cost: Optional[Decimal] = None,
    created_at: Optional[datetime] = None,
    started_at: Optional[datetime] = None,
    finished_at: Optional[datetime] = None
)

A batch of data that you send for labeling at a time. The batch consists of work items.

Parameters Description

Parameters Type Description
id Optional[str]

Batch ID.

app_project_id Optional[str]

Project ID.

name Optional[str]

status Optional[Status]

The state of the batch, calculated based on the states of items comprising it. Allowed values:

  • NEW
  • PROCESSING
  • COMPLETED
  • ERROR
  • CANCELLED
  • ARCHIVE
  • NO_MONEY

items_count Optional[int]

Number of items in the batch.

item_price Optional[Decimal]

The cost of processing per item in a batch.

cost Optional[Decimal]

The cost of processing per batch.

created_at Optional[datetime]

Date and time when the batch was created.

started_at Optional[datetime]

Date and time when batch processing started.

finished_at Optional[datetime]

Date and time when batch processing was completed.