def METHOD_NAME() -> None:
    """Retry downloader jobs that were started but never finished."""
    potentially_hung_jobs = (
        DownloaderJob.hung_objects.filter(created_at__gt=utils.JOB_CREATED_AT_CUTOFF)
        .order_by("created_at")
        .prefetch_related("original_files__samples")
    )
    paginator = Paginator(potentially_hung_jobs, utils.PAGE_SIZE, "created_at")
    database_page = paginator.page()
    database_page_count = 0
    if len(database_page.object_list) <= 0:
        # No failed jobs, nothing to do!
        return
    queue_capacity = get_capacity_for_downloader_jobs()
    if queue_capacity <= 0:
        logger.info(
            "Not handling hung (started-but-never-finished) downloader jobs "
            "because there is no capacity for them."
        )
    while queue_capacity > 0:
        hung_jobs = utils.check_hung_jobs(database_page.object_list)
        if hung_jobs:
            logger.info(
                "Handling page %d of hung (started-but-never-finished) downloader jobs!",
                database_page_count,
                jobs_count=len(hung_jobs),
            )
            handle_downloader_jobs(hung_jobs)
        if database_page.has_next():
            database_page = paginator.page(database_page.next_page_number())
            database_page_count += 1
            queue_capacity = get_capacity_for_downloader_jobs()
        else:
            break