Commit ca75af9c authored by lixiaofang's avatar lixiaofang

add

parent 03e4210c
......@@ -70,7 +70,6 @@ def kafka_consum(topic_name=None):
auto_follow_user(card_info, after_day=True)
logging.info("当前卡片ID:%s,auto_follow_user子函数消费处理耗时:%f" % (
card_info['card_id'], time.time() - begin))
else:
pass
......@@ -155,14 +154,13 @@ def kafka_consum(topic_name=None):
auto_follow_user(card_info)
else:
logging.info("这条数据将被paas:%s" % card_info)
else: # push_time时间未到 需要等待
logging.info("follow [%s,%s,%s,%s],push_time未到,需要等待" % (
str(msg.topic), str(msg.partition), str(msg.offset), str(msg.key)))
save_data_to_kafka(card_info)
pass
else:
logging.info("此条数据已经消费过了:%s" % card_info)
pass
logging.info("消费处理耗时:%f" % (time.time() - begin))
except:
consumser_obj.close()
......
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