Commit d572343e authored by 张彦钊's avatar 张彦钊

add multi-process

parent ca0f9699
......@@ -245,7 +245,7 @@ def user_update(device_id, city_id, queue_name,data_set_cid):
def mult_iproecess_update(device_id, city_id, data_set_cid):
queue_name_list = ["native_queue","nearby_queue","nation_queue","megacity_queue"]
pool = Pool(2)
pool = Pool(4)
for queue_name in queue_name_list:
pool.apply_async(user_update, (device_id, city_id, queue_name,data_set_cid,))
pool.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