|
@@ -357,25 +357,26 @@ 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.cbd_sim()
|
|
|
|
|
- print("大数据测报灯更新完毕--%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
|
|
|
|
- self.xycb_sim()
|
|
|
|
|
- print("大数据性诱测报更新完毕--%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
|
|
|
|
- self.qxz_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()
|
|
|
|
|
+ # print("大数据测报灯更新完毕--%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
|
|
|
|
+ # self.xycb_sim()
|
|
|
|
|
+ # print("大数据性诱测报更新完毕--%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
|
|
|
|
+ # self.qxz_sim()
|
|
|
|
|
+ # print("大数据气象站更新完毕--%s"%(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
|
|
self.bzy_sim()
|
|
self.bzy_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")))
|
|
|
|
|
|
|
|
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("")
|