Commit 1621c58c authored by 张彦钊's avatar 张彦钊

add multi-process

parent 7e1d0f40
......@@ -14,6 +14,7 @@ def get_active_users():
sql = "select device_id,city_id from user_active_time " \
"where active_time <= '{}' and active_time >= '{}'".format(now_end,now_start)
df = con_sql(sql)
return (("358035085192742","beijing"),)
if df.empty:
print("当下这一分钟没有活跃用户,不需要预测")
for eachFile in os.listdir("/tmp"):
......
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