code: def do_workers(self, args):
          '''list all known workers'''
          workers = self.task_master.workers(alive=not args.all)
          for k in sorted(workers.iterkeys()):
              self.stdout.write('{0} ({1})\n'.format(k, workers[k]))
              if args.details:
                  heartbeat = self.task_master.get_heartbeat(k)
                  for hk, hv in heartbeat.iteritems():
                      self.stdout.write('  {0}: {1}\n'.format(hk, hv)f do_workers(self, args):
          '''list all known workers'''
          workers = self.task_master.workers(alive=not args.all)
          for k in sorted(workers.iterkeys()):
              self.stdout.write('{0} ({1})\n'.format(k, workers[k]))
              if args.details:
                  heartbeat = self.task_master.get_heartbeat(k)
                  for hk, hv in heartbeat.iteritems():
                      self.stdout.write('  {0}: {1}\n'.format(hk, hv))
docs: list all known workers