Toloka documentation

AssignmentEvent

toloka.streaming.event.AssignmentEvent | Source code

AssignmentEvent(
    self,
    *,
    event_time: Optional[datetime] = None,
    event_type: Union[Type, str, None] = None,
    assignment: Optional[Assignment] = None
)

Assignment-related event.

Parameters Description

Parameters Type Description
event_time Optional[datetime]

Event datetime.

event_type Optional[Type]

One of the folllowing event types:

  • CREATED
  • SUBMITTED
  • ACCEPTED
  • REJECTED
  • SKIPPED
  • EXPIRED
assignment Optional[Assignment]

Assignment object itself.