def workers(profile='default'):
 config = get_running(profile)
 lbn = config['worker.list'].split(',')
 worker_list = []
 ret = {}
 for lb in lbn:
  try:
   worker_list.extend(config['worker.{0}.balance_workers'.format(lb)].split(','))
  except KeyError:
   pass
 worker_list = list(set(worker_list))
 for worker in worker_list:
  ret[worker] = {'activation': config['worker.{0}.activation'.format(worker)], 'state': config['worker.{0}.state'.format(worker)]}
 return ret

def workers ( profile = 'default' ) : config = get_running ( profile ) lbn = config [ 'worker.list' ] . split ( ',' ) worker_list = [ ] ret = { } for lb in lbn : try : worker_list . extend ( config [ 'worker.{0}.balance_workers' . format ( lb ) ] . split ( ',' ) ) except KeyError : pass worker_list = list ( set ( worker_list ) ) for worker in worker_list : ret [ worker ] = { 'activation' : config [ 'worker.{0}.activation' . format ( worker ) ] , 'state' : config [ 'worker.{0}.state' . format ( worker ) ] } return ret
return a list of member workers and their status cli examples: .