docs: def start_hq(output_dir, config, topic, is_master=True, **kwargs):
      """Start a HQ
      """
      HightQuarter = get_hq_class(config.get('hq_class'))
      hq = HightQuarter(output_dir, config, topic, **kwargs)
      hq.setup()
      if is_master:
          hq.wait_turrets(config.get("min_turrets", 1))
      hq.run()
      hq.tear_down()