def worker_status(worker, profile='default'):
 config = get_running(profile)
 try:
  return {'activation': config['worker.{0}.activation'.format(worker)], 'state': config['worker.{0}.state'.format(worker)]}
 except KeyError:
  return False

def worker_status ( worker , profile = 'default' ) : config = get_running ( profile ) try : return { 'activation' : config [ 'worker.{0}.activation' . format ( worker ) ] , 'state' : config [ 'worker.{0}.state' . format ( worker ) ] } except KeyError : return False
return the state of the worker cli examples: .