original_docstring: 
      Checks if reset of integration context have been made by the user.
      Because fetch is long running execution, user communicates with us
      by calling 'qradar-reset-last-run' command which sets reset flag in
      context.
      Using lock because calls to this function concurrent
      Args:
          handle_reset (bool): Whether the reset should be handled by the caller.
  
      Returns:
          (bool):
          - True if reset flag was set. If 'handle_reset' is true, also resets integration context.
          - False if lock could not be acquired until timeout.
          - False if lock was acquired, and reset flag was not found in integration context.
      
docstring: Checks if reset of integration context have been made by the user.
  Because fetch is long running execution, user communicates with us
  by calling 'qradar-reset-last-run' command which sets reset flag in
  context.
  Using lock because calls to this function concurrent
docstring_tokens: Checks if reset of integration context have been made by the user . Because fetch is long running execution user communicates with us by calling ' qradar - reset - last - run ' command which sets reset flag in context . Using lock because calls to this function concurrent
code: def is_reset_triggered(handle_reset: bool = False):
      """
      Checks if reset of integration context have been made by the user.
      Because fetch is long running execution, user communicates with us
      by calling 'qradar-reset-last-run' command which sets reset flag in
      context.
      Using lock because calls to this function concurrent
      Args:
          handle_reset (bool): Whether the reset should be handled by the caller.
  
      Returns:
          (bool):
          - True if reset flag was set. If 'handle_reset' is true, also resets integration context.
          - False if lock could not be acquired until timeout.
          - False if lock was acquired, and reset flag was not found in integration context.
      """
      if lock.acquire(timeout=LOCK_WAIT_TIME):
          ctx = get_integration_context()
          if ctx and RESET_KEY in ctx:
              if handle_reset:
                  print_debug_msg('Reset fetch-incidents.')
                  set_integration_context({'samples': ctx.get('samples', [])})
              lock.release()
              return True
          lock.release()
      return False
code_tokens: def is_reset_triggered ( handle_reset : bool = False ) : if lock . acquire ( timeout = LOCK_WAIT_TIME ) : ctx = get_integration_context ( ) if ctx and RESET_KEY in ctx : if handle_reset : print_debug_msg ( 'Reset fetch-incidents.' ) set_integration_context ( { 'samples' : ctx . get ( 'samples' , [ ] ) } ) lock . release ( ) return True lock . release ( ) return False
short_docstring: Checks if reset of integration context have been made by the user.
short_docstring_tokens: Checks if reset of integration context have been made by the user .
comment: """
      Checks if reset of integration context have been made by the user.
      Because fetch is long running execution, user communicates with us
      by calling 'qradar-reset-last-run' command which sets reset flag in
      context.
      Using lock because calls to this function concurrent
      Args:
          handle_reset (bool): Whether the reset should be handled by the caller.
  
      Returns:
          (bool):
          - True if reset flag was set. If 'handle_reset' is true, also resets integration context.
          - False if lock could not be acquired until timeout.
          - False if lock was acquired, and reset flag was not found in integration context.
      """