|
@@ -754,12 +754,17 @@ class NewContentIdTask(object):
|
|
process_list.append(task_dict[item])
|
|
process_list.append(task_dict[item])
|
|
logging(
|
|
logging(
|
|
code="5001",
|
|
code="5001",
|
|
- info="Match Task Got {} this time".format(len(task_list)),
|
|
|
|
|
|
+ info="Match Task Got {} this time".format(len(process_list)),
|
|
function="Publish Task"
|
|
function="Publish Task"
|
|
)
|
|
)
|
|
if task_list:
|
|
if task_list:
|
|
|
|
+ total_task = len(process_list)
|
|
|
|
+ a = time.time()
|
|
|
|
+ print("开始处理,一共{}个任务".format(total_task))
|
|
tasks = [self.process_task(params) for params in process_list]
|
|
tasks = [self.process_task(params) for params in process_list]
|
|
await asyncio.gather(*tasks)
|
|
await asyncio.gather(*tasks)
|
|
|
|
+ b = time.time()
|
|
|
|
+ print("处理时间: {} s".format(b - a))
|
|
else:
|
|
else:
|
|
logging(
|
|
logging(
|
|
code="9008",
|
|
code="9008",
|