def METHOD_NAME(self) -> None:
    """Aborting logic."""
    self.logger.critical("Discard pending tasks of %s.", self)
    # Will announce that all the ongoing tasks fail, but there is a buffer
    # period and some tasks might be finished, so, copy the uids of ongoing
    # tasks and set test result, although the report could be overwritten.
    ongoing = self.ongoing[:]
    while ongoing:
        uid = ongoing.pop(0)
        result = TestResult()
        result.report = TestGroupReport(
            name=uid, category=ReportCategories.ERROR
        )
        result.report.status_override = Status.ERROR
        result.report.logger.critical(
            "Test [%s] discarding due to %s abort.", uid, self.uid()
        )
        self._results[uid] = result