code: def _get_pause(jid, state_id=None):
      '''
      Return the pause information for a given jid
      '''
      pause_dir = os.path.join(__opts__['cachedir'], 'state_pause')
      pause_path = os.path.join(pause_dir, jid)
      if not os.path.exists(pause_dir):
          try:
              os.makedirs(pause_dir)
          except OSError:
              # File created in the gap
              pass
      data = {}
      if state_id is not None:
          if state_id not in data:
              data[state_id] = {}
      if os.path.exists(pause_path):
          with salt.utils.files.fopen(pause_path, 'rb') as fp_:
              data = salt.utils.msgpack.loads(fp_.read())
      return data, pause_patf _get_pause(jid, state_id=None):
      '''
      Return the pause information for a given jid
      '''
      pause_dir = os.path.join(__opts__['cachedir'], 'state_pause')
      pause_path = os.path.join(pause_dir, jid)
      if not os.path.exists(pause_dir):
          try:
              os.makedirs(pause_dir)
          except OSError:
              # File created in the gap
              pass
      data = {}
      if state_id is not None:
          if state_id not in data:
              data[state_id] = {}
      if os.path.exists(pause_path):
          with salt.utils.files.fopen(pause_path, 'rb') as fp_:
              data = salt.utils.msgpack.loads(fp_.read())
      return data, pause_path
docs: Return the pause information for a given jid