def get_scheduler_by_index(index):
    """
    Returns an rq-scheduler Scheduler using parameters defined in ``QUEUES_LIST``
    """
    from .settings import QUEUES_LIST

    config = QUEUES_LIST[int(index)]
    return get_scheduler(config['name'])

    Returns an rq-scheduler Scheduler using parameters defined in ``QUEUES_LIST``
    
django_rq/queues.py