|
|
@@ -381,11 +381,12 @@ 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)
|
|
|
- all_tasks = [
|
|
|
- Execution_POOL.submit(SQ_SIMUpdate().run()),
|
|
|
- Execution_POOL.submit(BD_SIMUpdate().run())
|
|
|
- ]
|
|
|
+ a = Execution_POOL.submit(SQ_SIMUpdate().run())
|
|
|
+ all_tasks.append(a)
|
|
|
+ b = Execution_POOL.submit(BD_SIMUpdate().run())
|
|
|
+ all_tasks.append(b)
|
|
|
wait(all_tasks, return_when=ALL_COMPLETED)
|
|
|
|
|
|
print("SIM卡信息更新完毕----------%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|