code: def check_and_del_zombie_workers(self):  # pragma: no cover, not with unit tests...
          # pylint: disable= not-callable
          
          # Active children make a join with everyone, useful :)
          # active_children()
          for p in active_children():
              logger.debug("got child: %s", p)
  
          w_to_del = []
          for worker in list(self.workers.values()):
              # If a worker goes down and we did not ask him, it's not
              # good: we can think that we have a worker and it's not True
              # So we del it
              logger.debug("checking if worker %s (pid=%d) is alive",
                           worker.get_id(), worker.get_pid())
              if not self.interrupted and not worker.is_alive():
                  logger.warning("The worker %s (pid=%d) went down unexpectedly!",
                                 worker.get_id(), worker.get_pid())
                  # Terminate immediately
                  worker.terminate()
                  worker.join(timeout=1)
                  w_to_del.append(worker.get_id())
  
          # OK, now really del workers from queues
          # And requeue the actions it was managed
          for worker_id in w_to_del:
              worker = self.workers[worker_id]
  
              # Del the queue of the module queue
              del self.q_by_mod[worker.module_name][worker.get_id()]
  
              for scheduler_uuid in self.schedulers:
                  sched = self.schedulers[scheduler_uuid]
                  for act in list(sched.actions.values()):
                      if act.status == ACT_STATUS_QUEUED and act.my_worker == worker_id:
                          # Got a check that will NEVER return if we do not restart it
                          self.assign_to_a_queue(act)
  
              # So now we can really forgot it
              del self.workers[worker_id]
docs: Check if worker are fine and kill them if not.
          Dispatch the actions in the worker to another one
  
          TODO: see if unit tests would allow to check this code?
  
          :return: None