def METHOD_NAME() -> None:
    """Handle survey jobs that were marked as a failure."""
    failed_jobs = SurveyJob.failed_objects.filter(
        created_at__gt=utils.JOB_CREATED_AT_CUTOFF
    ).order_by("pk")
    paginator = Paginator(failed_jobs, 200)
    page = paginator.page()
    page_count = 0
    if len(page.object_list) <= 0:
        # No failed jobs, nothing to do!
        return
    queue_capacity = get_capacity_for_jobs()
    while queue_capacity > 0:
        logger.info(
            "Handling page %d of failed (explicitly-marked-as-failure) survey jobs!", page_count
        )
        handle_survey_jobs(page.object_list, queue_capacity)
        if page.has_next():
            page = paginator.page(page.next_page_number())
            page_count = page_count + 1
            queue_capacity = get_capacity_for_jobs()
        else:
            break