Skip to content

Commit

Permalink
API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Sep 8, 2023
1 parent 6fd5c36 commit 75cc848
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions fink_client/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,19 @@ def __exit__(self, type, value, traceback):
self._consumer.close()

def process_message(self, msg):
""" Process message from Kafka
Parameters
----------
msg: confluent_kafka.Message
Object containing message information
Returns
----------
list: [tuple(str, dict, str)]
list of topic, alert, key
returns an empty list on timeout
"""
# msg.error() returns None or KafkaError
if msg.error():
error_message = """
Expand Down

0 comments on commit 75cc848

Please sign in to comment.