Skip to content

Commit 3ab17d7

Browse files
committed
fix kafka streamer topic --skip-tests
1 parent b53ff3c commit 3ab17d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwm_worker_operator/kafka_streamer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ def delete_records(topic, latest_partition_offset):
9494

9595
def run_single_iteration(domains_config: DomainsConfig, topic=None, no_kafka_commit=False, no_kafka_delete=False, **_):
9696
start_time = common.now()
97-
if not topic:
98-
topic = config.KAFKA_STREAMER_TOPIC
9997
assert topic, "topic is required"
10098
logs.debug(f"running iteration for topic: {topic}", 8)
10199
consumer = Consumer({
@@ -130,6 +128,8 @@ def run_single_iteration(domains_config: DomainsConfig, topic=None, no_kafka_com
130128

131129

132130
def start_daemon(once=False, domains_config=None, topic=None, no_kafka_commit=False, no_kafka_delete=False):
131+
if not topic:
132+
topic = config.KAFKA_STREAMER_TOPIC
133133
assert topic
134134
Daemon(
135135
name=f"kafka_streamer_{topic}",

0 commit comments

Comments
 (0)