示例#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)
示例#2
0
文件: producer.py 项目: ciena/afkak
 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)
示例#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)
示例#4
0
文件: consumer.py 项目: ciena/afkak
    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)