Skip to content

Commit 3c12061

Browse files
committed
add missing thing from the rebase
1 parent 892bb2d commit 3c12061

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

osprey_worker/src/osprey/worker/sinks/input_stream_chooser.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,14 @@ def get_rules_sink_input_stream(
9999
elif input_stream_source == InputStreamSource.KAFKA:
100100
config = CONFIG.instance()
101101
client_id = config.get_str('OSPREY_KAFKA_INPUT_STREAM_CLIENT_ID', 'localhost')
102+
client_id_suffix = config.get_optional_str('OSPREY_KAFKA_INPUT_STREAM_CLIENT_ID_SUFFIX')
102103
input_topic: str = config.get_str('OSPREY_KAFKA_INPUT_STREAM_TOPIC', 'osprey.actions_input')
103104
input_bootstrap_servers: list[str] = config.get_str_list('OSPREY_KAFKA_BOOTSTRAP_SERVERS', ['localhost'])
104105
group_id = config.get_optional_str('OSPREY_KAFKA_GROUP_ID')
105106

107+
if client_id_suffix:
108+
client_id = f'{client_id}-{client_id_suffix}'
109+
106110
consumer: PatchedKafkaConsumer = PatchedKafkaConsumer(
107111
input_topic,
108112
bootstrap_servers=input_bootstrap_servers,

0 commit comments

Comments
 (0)