code: def reset(self):
          
          self.context = pyblish.api.Context()
          self.plugins = pyblish.api.discover()
  
          self.was_discovered.emit()
  
          self.pair_generator = None
          self.current_pair = (None, None)
          self.current_error = None
  
          self.processing = {
              "nextOrder": None,
              "ordersWithError": set()
          }
  
          self._load()
          self._run(until=pyblish.api.CollectorOrder,
                    on_finished=self.was_reset.emit)
docs: Discover plug-ins and run collection