Example #1
0
 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
Example #2
0
 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
Example #3
0
 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