code: def get_all_status(self, only_min=False):
          
          if len(self) == 0:
              # The work will be created in the future.
              if only_min:
                  return self.S_INIT
              else:
                  return [self.S_INIT]
  
          self.check_status()
          status_list = [task.status for task in self]
  
          if only_min:
              return min(status_list)
          else:
              return status_list
docs: Returns a list with the status of the tasks in self.
  
          Args:
              only_min: If True, the minimum of the status is returned.