def clear_lock(clear_func, role, remote=None, lock_type='update'):
    msg = 'Clearing {0} lock for {1} remotes'.format(lock_type, role)
    if remote:
        msg += ' matching {0}'.format(remote)
    log.debug(msg)
    return clear_func(remote=remote, lock_type=lock_type)
Initializes the APScheduler with a Flask application instance.
dataset/ETHPy150Open saltstack/salt/salt/fileserver/__init__.py/clear_lock--crossover with--dataset/ETHPy150Open viniciuschiele/flask-apscheduler/flask_apscheduler/scheduler.py/APScheduler.init_app