def get_jids_filter(count, filter_find_job=True):
 keys = []
 ret = []
 for (jid, job, _, _) in _walk_through(_job_dir()):
  job = salt.utils.jid.format_jid_instance_ext(jid, job)
  if (filter_find_job and (job['Function'] == 'saltutil.find_job')):
   continue
  i = bisect.bisect(keys, jid)
  if ((len(keys) == count) and (i == 0)):
   continue
  keys.insert(i, jid)
  ret.insert(i, job)
  if (len(keys) > count):
   del keys[0]
   del ret[0]
 return ret

def get_jids_filter ( count , filter_find_job = True ) : keys = [ ] ret = [ ] for ( jid , job , _ , _ ) in _walk_through ( _job_dir ( ) ) : job = salt . utils . jid . format_jid_instance_ext ( jid , job ) if ( filter_find_job and ( job [ 'Function' ] == 'saltutil.find_job' ) ) : continue i = bisect . bisect ( keys , jid ) if ( ( len ( keys ) == count ) and ( i == 0 ) ) : continue keys . insert ( i , jid ) ret . insert ( i , job ) if ( len ( keys ) > count ) : del keys [ 0 ] del ret [ 0 ] return ret
return a list of all job ids .