def METHOD_NAME() -> None:
    """Handle processor jobs that were marked as a failure.
    Ignores Janitor jobs since they are queued every half hour anyway."""
    failed_jobs = (
        ProcessorJob.failed_objects.filter(created_at__gt=utils.JOB_CREATED_AT_CUTOFF)
        .exclude(pipeline_applied="JANITOR")
        .order_by("created_at")
        .prefetch_related("original_files__samples")
    )
    paginator = Paginator(failed_jobs, 200, "created_at")
    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()
    if queue_capacity <= 0:
        logger.info(
            "Not handling failed (explicitly-marked-as-failure) processor jobs "
            "because there is no capacity for them."
        )
    if queue_capacity > 0:
        for i in range(queue_capacity):
            logger.info(
                "Handling page %d of failed (explicitly-marked-as-failure) processor jobs!",
                page_count,
            )
            handle_processor_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