code: def query_configuration(parser_args):
      
      from synergy.system import process_helper
      from synergy.conf import context
  
      process_names = [parser_args.process_name] if parser_args.process_name else list(context.process_context)
      for process_name in process_names:
          process_helper.poll_process(process_name)
      sys.stdout.write('\n')
docs: Queries process state