|
@@ -370,8 +370,8 @@ class BD_SIMUpdate(object):
|
|
|
SIMUpdate(deviceId=device_id,iccid=photo_iccid,device_type="孢子仪",platform=2).photo_sim()
|
|
SIMUpdate(deviceId=device_id,iccid=photo_iccid,device_type="孢子仪",platform=2).photo_sim()
|
|
|
|
|
|
|
|
def run(self):
|
|
def run(self):
|
|
|
- self.scd_sim()
|
|
|
|
|
- print("大数据杀虫灯更新完毕--%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
|
|
|
|
|
|
+ # self.scd_sim()
|
|
|
|
|
+ # print("大数据杀虫灯更新完毕--%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
|
|
self.cbd_sim()
|
|
self.cbd_sim()
|
|
|
print("大数据测报灯更新完毕--%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
|
print("大数据测报灯更新完毕--%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
|
|
self.xycb_sim()
|
|
self.xycb_sim()
|
|
@@ -383,12 +383,13 @@ class BD_SIMUpdate(object):
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
if __name__ == "__main__":
|
|
|
print("SIM卡信息开始更新----------%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
|
print("SIM卡信息开始更新----------%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
|
|
- Execution_POOL= ThreadPoolExecutor(max_workers=2)
|
|
|
|
|
- all_tasks = [
|
|
|
|
|
- Execution_POOL.submit(SQ_SIMUpdate().run),
|
|
|
|
|
- Execution_POOL.submit(BD_SIMUpdate().run)
|
|
|
|
|
- ]
|
|
|
|
|
- wait(all_tasks, return_when=ALL_COMPLETED)
|
|
|
|
|
|
|
+ # Execution_POOL= ThreadPoolExecutor(max_workers=2)
|
|
|
|
|
+ # all_tasks = [
|
|
|
|
|
+ # Execution_POOL.submit(SQ_SIMUpdate().run),
|
|
|
|
|
+ # Execution_POOL.submit(BD_SIMUpdate().run)
|
|
|
|
|
+ # ]
|
|
|
|
|
+ # wait(all_tasks, return_when=ALL_COMPLETED)
|
|
|
|
|
+ BD_SIMUpdate().run()
|
|
|
print("SIM卡信息更新完毕----------%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
|
print("SIM卡信息更新完毕----------%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
|
|
print("")
|
|
print("")
|
|
|
print("")
|
|
print("")
|