code: def _batch_entry(self):
          
          try:
              while True:
                  self._batch_entry_run()
          except:
              self.exc_info = sys.exc_info()
              os.kill(self.pid, signal.SIGUSR1)
docs: Entry point for the batcher thread.