Skip to content
Snippets Groups Projects

Kafka alert generator

Merged Cody Messick requested to merge cody.messick/gwcelery:avro_alerts into main
Compare and
11 files
+ 3529
23
Compare changes
  • Side-by-side
  • Inline
Files
11
@@ -49,6 +49,15 @@ class Producer(KafkaBootStep):
k: stream.open(v, 'w') for k, v in
consumer.app.conf['kafka_urls'].items()
}
# Set up flag for status of kafka broker, this will be checked by a
# periodic task
consumer.app.conf['kafka_topic_up'] = {
v: True for v in consumer.app.conf['kafka_urls'].values()
}
# Set up flag for failed delivery of messages
consumer.app.conf['kafka_delivery_failures'] = {
v: False for v in consumer.app.conf['kafka_urls'].values()
}
def stop(self, consumer):
super().stop(consumer)
Loading