Ver Fonte

美洲服批量保存1000条数据

locky há 1 ano atrás
pai
commit
03b54971a5
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 1 1
      AnsjerPush/us_config/formal_config.py
  2. 2 2
      Service/DevicePushService.py

+ 1 - 1
AnsjerPush/us_config/formal_config.py

@@ -21,7 +21,7 @@ SECRET_ACCESS_KEY = 'ckYLg4Lo9ZXJIcJEAKkzf2rWvs8Xth1FCjqiAqUw'
 PUSH_BUCKET = 'foreignpush'                                # 推送存储桶
 
 # redis节点
-REDIS_ADDRESS = 'redis-cli -h amaaaaaayszequiamxr7cdpparig3ptmytvde5vvnz6n7gceo4232sbhhlsa-p.redis.us-phoenix-1.oci.oraclecloud.com'
+REDIS_ADDRESS = 'pushredis.5tgle2.0001.usw1.cache.amazonaws.com'
 
 APNS_MODE = 'prod'
 

+ 2 - 2
Service/DevicePushService.py

@@ -246,8 +246,8 @@ class DevicePushService:
                 equipment_info_len = redis_obj.llen(equipment_info_key)
                 if CONFIG_INFO == CONFIG_US:
                     # 美洲服批量保存300条数据
-                    if equipment_info_len >= 500:
-                        end = 499
+                    if equipment_info_len >= 1000:
+                        end = 999
                 else:
                     # 缓存数据多于100条,批量保存前100条,否则保存全部
                     equipment_info_len = redis_obj.llen(equipment_info_key)