def push_retry(self, batch):
# we retry a batch - decrement retry counter
batch = batch._replace(rty_cnt=batch.rty_cnt - 1)
try:
self.network_deque.put(batch, block=False)
except queue.Full:
msg = 'Dropping {} due to backfill queue full.'.format(
batch)
self.ui.error(msg)
self.send_error_to_ctx(batch, msg)
评论列表
文章目录