AnnotationTask Objects

class AnnotationTask(WorkflowTask)

assignee

Represents a task in a non-Consensus Annotate stage.

Attributes

  • status (AnnotationTaskStatus): The current status of the task.
  • data_hash (UUID): Unique ID for the data unit.
  • data_title (str): Name of the data unit.
  • label_branch_name (str): Name of the label branch.
  • assignee (Optional[str]): User assigned to the task.

Allowed actions

  • submit: Submits a task for review.
  • assign: Assigns a task to a user.
  • release: Releases a task from the current user.

submit

def submit(*,
           assignee: Optional[str] = None,
           retain_assignee: bool = False,
           bundle: Optional[Bundle] = None) -> None

Submits the task for review.

Parameters

  • assignee (Optional[str]): User email to be assigned to the task whilst submitting the task.
  • retain_assignee (bool): Retains the current assignee of the task. This is ignored if assignee is provided. An Error will occur if the task does not already have an assignee and retain_assignee is True.
  • bundle (Optional[Bundle]): Optional bundle to be included with the submission.

assign

def assign(assignee: str, *, bundle: Optional[Bundle] = None) -> None

Assigns the task to a user.

Parameters

  • assignee (str): The email of the user to assign the task to.
  • bundle (Optional[Bundle]): Optional bundle to be included with the assignment.

release

def release(*, bundle: Optional[Bundle] = None) -> None

Releases the task from the current user.

Parameters

  • bundle (Optional[Bundle]): Optional bundle to be included with the release.