Create an executable project (API and Admin App) from a database or natural language prompt with 1 command, customize with declarative rules and Python in your IDE, containerize and deploy.
def send_kafka_message(logic_row: LogicRow, row_dict_mapper: RowDictMapper,
kafka_topic: str, kafka_key: str, msg: str="",
json_root_name: str = ""):
""" Send Kafka message regarding logic_row, mapped by row_dict_mapper
* Typically called from declare_logic event
Args:
logic_row (LogicRow): root data to be sent
row_dict_mapper (RowDictMapper): typically subclass of RowDictMapper, transforms row to dict
kafka_topic (str): the kafka topic
kafka_key (str): the kafka key
msg (str, optional): string to log
json_root_name (str, optional): json name for json payload root; default is logic_row.name
"""
row_obj_dict = row_dict_mapper().row_to_dict(row = logic_row.row)
Lost fix for
integration/kafka/kafka_producer.py
:Fix in progress.