Retry engine trys to write bad data to Kafka
Previous retry fix did not actually fix the problem. Change-Id: I2aa728d86a9cd21022d681149fae8aeebf08be24
This commit is contained in:
parent
b6b3b1a419
commit
6d6ad5b0f5
|
@ -78,7 +78,8 @@ class RetryEngine(object):
|
|||
sent, failed = self._notifier.send([notification])
|
||||
|
||||
if sent:
|
||||
self._producer.publish(self._topics['notification_topic'], [sent.to_json()])
|
||||
self._producer.publish(self._topics['notification_topic'],
|
||||
[notification.to_json()])
|
||||
|
||||
if failed:
|
||||
notification.retry_count += 1
|
||||
|
|
Loading…
Reference in New Issue