FinalStage Objects

class FinalStage(WorkflowStageBase)

stage_type

Final stage for a task in Consensus and non-Consensus Projects. The final stages are COMPLETE or ARCHIVE.

get_tasks

def get_tasks(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) -> Iterable[FinalStageTask]

Retrieves tasks for the FinalStage.

Parameters

  • data_hash (Union[List[UUID], UUID, List[str], str, None]): Unique ID(s) for the data unit(s).
  • dataset_hash (Union[List[UUID], UUID, List[str], str, None]): Unique ID(s) for the dataset(s) that the data unit(s) belongs to.
  • data_title (Optional[str]): A string to filter tasks by the data unit’s name.

Returns

An iterable of FinalStageTask instances with the following information:

  • uuid: Unique identifier for the task.
  • created_at: Time and date the task was created.
  • updated_at: Time and date the task was last edited.
  • data_hash: Unique identifier for the data unit.
  • data_title: Name/title of the data unit.