code: def set_to_restart(self, instance):
          
          self.to_restart.append(instance)
          if instance.is_external:
              instance.proc = None
docs: Put an instance to the restart queue
  
          :param instance: instance to restart
          :type instance: object
          :return: None