def _select_manager(backend_name):
    if backend_name == 'RedisBackend':
        lock_manager = _LockManagerRedis
    elif backend_name == 'DatabaseBackend':
        lock_manager = _LockManagerDB
    else:
        raise NotImplementedError
    return lock_manager
Selects the proper LockManager based on the current backend used by Celery.
dataset/ETHPy150Open Robpol86/Flask-Celery-Helper/flask_celery.py/_select_manager