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 648c9be0
authored
May 15, 2024
by
‘chizw’
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]kafka超时处理
1 parent
ac5a4b1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
kafka_service/funasr_consumer.py
kafka_service/funasr_consumer.py
View file @
648c9be
...
@@ -49,6 +49,8 @@ class MultiThreadKafka(object):
...
@@ -49,6 +49,8 @@ class MultiThreadKafka(object):
bootstrap_servers
=
ConfigInfo
.
kafka_consumer_bootstrap_servers
,
# Kafka broker 的地址
bootstrap_servers
=
ConfigInfo
.
kafka_consumer_bootstrap_servers
,
# Kafka broker 的地址
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
,
# 从最早的消息开始消费
request_timeout_ms
=
3000000
,
fetch_max_wait_ms
=
300000
,
)
)
tp
=
TopicPartition
(
ConfigInfo
.
kafka_consumer_analysis_topic
,
self
.
seek
)
tp
=
TopicPartition
(
ConfigInfo
.
kafka_consumer_analysis_topic
,
self
.
seek
)
consumer
.
assign
([
tp
])
consumer
.
assign
([
tp
])
...
...
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