Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
funasr_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bc1ad3f5
authored
Mar 20, 2024
by
‘chizw’
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]多线程消费
1 parent
6f6a4653
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletions
kafka_service/funasr_consumer.py
kafka_service/funasr_consumer.py
View file @
bc1ad3f
...
@@ -88,7 +88,6 @@ class MultiThreadKafka(object):
...
@@ -88,7 +88,6 @@ class MultiThreadKafka(object):
group_id
=
ConfigInfo
.
kafka_consumer_group_id
,
# 消费者组 ID
group_id
=
ConfigInfo
.
kafka_consumer_group_id
,
# 消费者组 ID
auto_offset_reset
=
ConfigInfo
.
kafka_consumer_auto_offset_reset
,
# 从最早的消息开始消费
auto_offset_reset
=
ConfigInfo
.
kafka_consumer_auto_offset_reset
,
# 从最早的消息开始消费
)
)
print
(
f
"seek:{self.seek}"
)
tp
=
TopicPartition
(
ConfigInfo
.
kafka_consumer_analysis_topic
,
self
.
seek
)
tp
=
TopicPartition
(
ConfigInfo
.
kafka_consumer_analysis_topic
,
self
.
seek
)
consumer
.
assign
([
tp
])
consumer
.
assign
([
tp
])
# consumer.seek(tp, self.seek)
# consumer.seek(tp, self.seek)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment