def METHOD_NAME(self, mails: list[Mail]):
    success = False
    failures = len(mails)
    try:
        success, failures = send_mails(mails)
    except RetryableException:
        self.retry(countdown=1800, max_retries=96)
        print("Retrying mail task in 30min")
    except RuntimeError:
        pass
    if not success:
        print(f"Could not send all mails! ({failures}/{len(mails)} failed)")