code: def errored_tasks(self):
          
          etasks = []
          for status in [self.S_ERROR, self.S_QCRITICAL, self.S_ABICRITICAL]:
              etasks.extend(list(self.iflat_tasks(status=status)))
  
          return set(etasks)
docs: List of errored tasks.