code: def get_jids():
      '''
      Return a list of all job ids
      '''
      with _get_serv(ret=None, commit=True) as cur:
  
          sql = '''SELECT jid, load
                  FROM jids'''
  
          cur.execute(sql)
          data = cur.fetchall()
          ret = {}
          for jid, load in data:
              ret[jid] = salt.utils.jid.format_jid_instance(jid,
                                                            salt.utils.json.loads(load))
          return ref get_jids():
      '''
      Return a list of all job ids
      '''
      with _get_serv(ret=None, commit=True) as cur:
  
          sql = '''SELECT jid, load
                  FROM jids'''
  
          cur.execute(sql)
          data = cur.fetchall()
          ret = {}
          for jid, load in data:
              ret[jid] = salt.utils.jid.format_jid_instance(jid,
                                                            salt.utils.json.loads(load))
          return ret
docs: Return a list of all job ids