def get_total_size_of_queued_replicas():
    """Return the total number of bytes of requested, unprocessed replicas."""
    return (
        d1_gmn.app.models.ReplicationQueue.objects.filter(
            local_replica__info__status__status='queued'
        ).aggregate(Sum('size'))['size__sum']
        or 0
    )