code: def get_jids():
      '''
      Return a list of all job ids
      '''
      serv = _get_serv(ret=None)
      sql = "select distinct(jid) from jids group by load"
  
      # [{u'points': [[0, jid, load],
      #               [0, jid, load]],
      #   u'name': u'jids',
      #   u'columns': [u'time', u'distinct', u'load']}]
      data = serv.query(sql)
      ret = {}
      if data:
          for _, jid, load in data[0]['points']:
              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
      '''
      serv = _get_serv(ret=None)
      sql = "select distinct(jid) from jids group by load"
  
      # [{u'points': [[0, jid, load],
      #               [0, jid, load]],
      #   u'name': u'jids',
      #   u'columns': [u'time', u'distinct', u'load']}]
      data = serv.query(sql)
      ret = {}
      if data:
          for _, jid, load in data[0]['points']:
              ret[jid] = salt.utils.jid.format_jid_instance(jid, salt.utils.json.loads(load))
      return ret
docs: Return a list of all job ids