def _batch_entry_run(self):
time.sleep(self.secs_between_batches)<EOL>with self._batch_lock:<EOL><INDENT>self.process_batches()<EOL><DEDENT>
The inside of ``_batch_entry``'s infinite loop.

        Separated out so it can be properly unit tested.