AnnotationStage Objects

class AnnotationStage(WorkflowStageBase)

stage_type

An Annotate stage in a non-Consensus Project.

You can use this stage in Consensus and non-Consensus Projects.

get_tasks

def get_tasks(
    *,
    assignee: Union[List[str], str, None] = None,
    data_hash: Union[List[UUID], UUID, List[str], str, None] = None,
    dataset_hash: Union[List[UUID], UUID, List[str], str, None] = None,
    data_title: Optional[str] = None,
    status: Union[AnnotationTaskStatus, List[AnnotationTaskStatus],
                  None] = None
) -> Iterable[AnnotationTask]

Retrieves tasks for the AnnotationStage.

Parameters

  • assignee (Union[List[str], str, None]): A list of user emails or a single user email to filter tasks by assignee.
  • data_hash (Union[List[UUID], UUID, List[str], str, None]): A list of data unit UUIDs or a single data unit UUID to filter tasks by data hash.
  • dataset_hash (Union[List[UUID], UUID, List[str], str, None]): A list of dataset UUIDs or a single dataset UUID to filter tasks by dataset hash.
  • data_title (Optional[str]): A string to filter tasks by data title.
  • status (Optional[AnnotationTaskStatus | List[AnnotationTaskStatus]]): A status or a list of statuses to filter tasks by their status.

Returns

An iterable of AnnotationTask instances from both non-Consensus and Consensus Projects.