Scheduler/Webserver should never use Internal API, so calling any method decorated with internal_api_call should still execute them locally
configure_manifest_files(flask_app)
    import_all_models()
    with flask_app.app_context():
        init_appbuilder(flask_app)
        init_appbuilder_views(flask_app)
        init_appbuilder_links(flask_app)
        init_plugins(flask_app)
        init_connection_form()
        init_error_handlers(flask_app)
        init_api_connexion(flask_app)
        if conf.getboolean("webserver", "run_internal_api", fallback=False):
            init_api_internal(flask_app)
        init_api_experimental(flask_app)
        sync_appbuilder_roles(flask_app)
        init_jinja_globals(flask_app)
        init_xframe_protection(flask_app)
        init_airflow_session_interface(flask_app)
        init_check_user_active(flask_app)
    return flask_app
def cached_app(config=None, testing=False):
    """Return cached instance of Airflow WWW app"""
    global app
    if not app:
        app = create_app(config=config, testing=testing)
    return app
def purge_cached_app():
    """Removes the cached version of the app in global state."""
    global app
    app = None