|
|
@@ -381,12 +381,11 @@ class BD_SIMUpdate(object):
|
|
|
if __name__ == "__main__":
|
|
|
print("SIM卡信息开始更新----------%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
|
|
print("")
|
|
|
- all_tasks = []
|
|
|
Execution_POOL= ThreadPoolExecutor(max_workers=2)
|
|
|
- a = Execution_POOL.submit(SQ_SIMUpdate().run())
|
|
|
- all_tasks.append(a)
|
|
|
- b = Execution_POOL.submit(BD_SIMUpdate().run())
|
|
|
- all_tasks.append(b)
|
|
|
+ all_tasks = [
|
|
|
+ Execution_POOL.submit(SQ_SIMUpdate().run),
|
|
|
+ Execution_POOL.submit(BD_SIMUpdate().run)
|
|
|
+ ]
|
|
|
wait(all_tasks, return_when=ALL_COMPLETED)
|
|
|
|
|
|
print("SIM卡信息更新完毕----------%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|