File tree Expand file tree Collapse file tree
osprey_worker/src/osprey/worker/sinks Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments