def get_fun(fun):
 serv = _get_serv(ret=None)
 ret = {}
 for minion in serv.smembers('minions'):
  ind_str = '{0}:{1}'.format(minion, fun)
  try:
   jid = serv.get(ind_str)
  except Exception:
   continue
  if (not jid):
   continue
  data = serv.get('{0}:{1}'.format(minion, jid))
  if data:
   ret[minion] = json.loads(data)
 return ret

def get_fun ( fun ) : serv = _get_serv ( ret = None ) ret = { } for minion in serv . smembers ( 'minions' ) : ind_str = '{0}:{1}' . format ( minion , fun ) try : jid = serv . get ( ind_str ) except Exception : continue if ( not jid ) : continue data = serv . get ( '{0}:{1}' . format ( minion , jid ) ) if data : ret [ minion ] = json . loads ( data ) return ret
return the most recent jobs that have executed the named function .