Skip to content

Commit

Permalink
Use all the Kafka bootstrap servers provided by Clowder
Browse files Browse the repository at this point in the history
  • Loading branch information
epapbak committed Dec 4, 2023
1 parent 039c0be commit 41c9124
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ccx_messaging/publishers/kafka_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def publish(self, input_msg: dict, report: str):
raise NotImplementedError()

def error(self, input_msg: dict, ex: Exception):
"""Handle pipeline errores by logging them."""
"""Handle pipeline errors by logging them."""
# The super call is probably unnecessary because the default behavior
# is to do nothing, but let's call it in case it ever does anything.
super().error(input_msg, ex)
Expand Down
6 changes: 3 additions & 3 deletions ccx_messaging/utils/clowder.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ def apply_clowder_config(manifest):
break

clowder_broker_config = app_common_python.LoadedConfig.kafka.brokers[0]
kafka_url = f"{clowder_broker_config.hostname}:{clowder_broker_config.port}"
logger.debug("Kafka URL: %s", kafka_url)
kafka_urls = app_common_python.KafkaServers
logger.debug("Kafka URLs: %s", kafka_urls)

kafka_broker_config = {"bootstrap.servers": kafka_url}
kafka_broker_config = {"bootstrap.servers": kafka_urls}

if clowder_broker_config.cacert:
# Current Kafka library is not able to handle the CA file, only a path to it
Expand Down

0 comments on commit 41c9124

Please sign in to comment.