def inner(session_id, *args, **kwargs): override_state = kwargs.get('override_state', None) global_state = GlobalStateManager.get_globalstate() with global_state.get_lock(session_id): with global_state.get_session(session_id, override_state=override_state) as xform_session: result = fn(xform_session, *args, **kwargs) return result
def inner(session_id, *args, **kwargs): override_state = kwargs.get('override_state', None) global_state = GlobalStateManager.get_globalstate() with global_state.get_lock(session_id): with global_state.get_session( session_id, override_state=override_state) as xform_session: result = fn(xform_session, *args, **kwargs) return result
def inner(session_id, *args, **kwargs): global_state = GlobalStateManager.get_globalstate() with global_state.get_lock(session_id): with global_state.get_session(session_id) as xform_session: result = fn(xform_session, *args, **kwargs) return result