Esempio n. 1
0
 def _send_timer_failed(self, fail):
     """
     Our _send_batch() function called by the LoopingCall failed. Some
     error probably came back from Kafka and _check_error() raised the
     exception
     For now, just log the failure and restart the loop
     """
     log.warning('_send_timer_failed:%r: %s', fail,
                 fail.getBriefTraceback())
     self.sendLooperD = self.sendLooper.start(self.batch_every_t, now=False)
Esempio n. 2
0
 def _send_timer_failed(self, fail):
     """
     Our _send_batch() function called by the LoopingCall failed. Some
     error probably came back from Kafka and _check_error() raised the
     exception
     For now, just log the failure and restart the loop
     """
     log.warning('_send_timer_failed:%r: %s', fail,
                 fail.getBriefTraceback())
     self._sendLooperD = self._sendLooper.start(
         self.batch_every_t, now=False)
Esempio n. 3
0
    def _commit_timer_failed(self, fail):
        """Handle an error in the commit() function

        Our commit() function called by the LoopingCall failed. Some error
        probably came back from Kafka and check_error() raised the exception
        For now, just log the failure and restart the loop
        """
        log.warning(
            '_commit_timer_failed: uncaught error %r: %s in _auto_commit',
            fail, fail.getBriefTraceback())
        self._commit_looper_d = self._commit_looper.start(
            self.auto_commit_every_s, now=False)
Esempio n. 4
0
    def _commit_timer_failed(self, fail):
        """Handle an error in the commit() function

        Our commit() function called by the LoopingCall failed. Some error
        probably came back from Kafka and _check_error() raised the exception
        For now, just log the failure and restart the loop
        """
        log.warning(
            '_commit_timer_failed: uncaught error %r: %s in _auto_commit',
            fail, fail.getBriefTraceback())
        self._commit_looper_d = self._commit_looper.start(
            self.auto_commit_every_s, now=False)