Commit ff4f5e72 authored by lixiaofang's avatar lixiaofang

add

parent 24aca437
...@@ -32,7 +32,7 @@ def kafka_consum(topic_name=None): ...@@ -32,7 +32,7 @@ def kafka_consum(topic_name=None):
try: try:
while True: while True:
begin = time.time() begin = time.time()
msg_dict = consumser_obj.poll(timeout_ms=10000, max_records=100) msg_dict = consumser_obj.poll(timeout_ms=30000, max_records=100)
for msg_value in msg_dict.values(): for msg_value in msg_dict.values():
for msg in msg_value: for msg in msg_value:
card_info = json.loads(str(msg.value, encoding="utf8")) card_info = json.loads(str(msg.value, encoding="utf8"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment