Toloka documentation


toloka.client.operations.TasksCreateOperation | Source code

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

Operation returned by an asynchronous creating tasks via TolokaClient.create_tasks_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.

progress Optional[int]

The percentage of the operation completed.

parameters Optional[Parameters]

Operation parameters (depending on the operation type).

finished Optional[datetime]

The UTC date and time the operation finished.

details Optional[Any]

Details of the operation completion.

skip_invalid_items -

Validation parameters for JSON objects:

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

Overlap settings:

  • True - Use the overlap that is set in the pool parameters (in the defaults.default_overlap_for_new_tasks key).
  • False - Use the overlap that is set in the task parameters (in the overlap field).
open_pool -

Open the pool immediately after creating the tasks, if the pool is closed.