|
@@ -194,27 +194,27 @@ class BaseConfig(object):
|
|
|
# 完整格式:com.weiqu.video.recall.hot.item.score.dup.24h.{rule_key}.{date}.{h}
|
|
|
RECALL_KEY_NAME_PREFIX_DUP_24H = 'com.weiqu.video.recall.hot.item.score.dup.24h.'
|
|
|
# 小时级视频状态不符合推荐要求的列表 redis key,完整格式:com.weiqu.video.filter.h.item.24h.{rule_key}
|
|
|
- H_VIDEO_FILER_24H = 'com.weiqu.video.filter.h.item.24hpre.'
|
|
|
+ H_VIDEO_FILER_24H = 'com.weiqu.video.filter.h.item.24h.'
|
|
|
|
|
|
# 小程序地域分组小时级更新结果存放 redis key前缀,完整格式:com.weiqu.video.recall.item.score.region.h.{region}.{rule_key}.{date}.{h}
|
|
|
- RECALL_KEY_NAME_PREFIX_REGION_BY_H = 'com.weiqu.video.recall.item.score.region.hpre.'
|
|
|
+ RECALL_KEY_NAME_PREFIX_REGION_BY_H = 'com.weiqu.video.recall.item.score.region.h.'
|
|
|
# 小程序地域分组天级更新结果与小程序地域分组小时级更新结果去重后 存放 redis key前缀,
|
|
|
# 完整格式:com.weiqu.video.recall.hot.item.score.dup1.region.day.h.{region}.{rule_key}.{date}.{h}
|
|
|
RECALL_KEY_NAME_PREFIX_DUP1_REGION_DAY_H = 'com.weiqu.video.recall.hot.item.score.dup1.region.day.h.'
|
|
|
# 小程序地域分组小时级更新24h结果与小程序地域分组小时级更新结果去重后 存放 redis key前缀,
|
|
|
# 完整格式:com.weiqu.video.recall.hot.item.score.dup1.region.24h.h.{region}.{rule_key}.{date}.{h}
|
|
|
- RECALL_KEY_NAME_PREFIX_DUP1_REGION_24H_H = 'com.weiqu.video.recall.hot.item.score.dup1.region.24h.hpre.'
|
|
|
+ RECALL_KEY_NAME_PREFIX_DUP1_REGION_24H_H = 'com.weiqu.video.recall.hot.item.score.dup1.region.24h.h.'
|
|
|
# 小程序天级更新结果与 小程序地域分组天级更新结果/小程序地域分组小时级更新结果 去重后 存放 redis key前缀,
|
|
|
# 完整格式:com.weiqu.video.recall.hot.item.score.dup2.region.day.h.{region}.{rule_key}.{date}.{h}
|
|
|
RECALL_KEY_NAME_PREFIX_DUP2_REGION_DAY_H = 'com.weiqu.video.recall.hot.item.score.dup2.region.day.h.'
|
|
|
# 小程序24h更新结果与 小程序地域分组24h更新结果/小程序地域分组小时级更新结果 去重后 存放 redis key前缀,
|
|
|
# 完整格式:com.weiqu.video.recall.hot.item.score.dup2.region.24h.h.{region}.{rule_key}.{date}.{h}
|
|
|
- RECALL_KEY_NAME_PREFIX_DUP2_REGION_24H_H = 'com.weiqu.video.recall.hot.item.score.dup2.region.24h.hpre.'
|
|
|
+ RECALL_KEY_NAME_PREFIX_DUP2_REGION_24H_H = 'com.weiqu.video.recall.hot.item.score.dup2.region.24h.h.'
|
|
|
# 小程序离线ROV模型结果与 小程序天级更新结果/小程序地域分组天级更新结果/小程序地域分组小时级更新结果 去重后 存放 redis key前缀,
|
|
|
# 完整格式:com.weiqu.video.recall.hot.item.score.dup.region.h.{region}.{rule_key}.{date}.{h}
|
|
|
- RECALL_KEY_NAME_PREFIX_DUP_REGION_H = 'com.weiqu.video.recall.hot.item.score.dup.region.hpre.'
|
|
|
+ RECALL_KEY_NAME_PREFIX_DUP_REGION_H = 'com.weiqu.video.recall.hot.item.score.dup.region.h.'
|
|
|
# 地域分组小时级视频状态不符合推荐要求的列表 redis key,完整格式:com.weiqu.video.filter.region.h.item.{region}.{rule_key}
|
|
|
- REGION_H_VIDEO_FILER = 'com.weiqu.video.filter.region.h.itempre.'
|
|
|
+ REGION_H_VIDEO_FILER = 'com.weiqu.video.filter.region.h.item.'
|
|
|
# 小时级视频状态不符合推荐要求的列表 redis key,完整格式:com.weiqu.video.filter.h.item.24h.{region}.{rule_key}
|
|
|
# H_VIDEO_FILER_24H = 'com.weiqu.video.filter.h.item.24h.'
|
|
|
|
|
@@ -230,7 +230,7 @@ class BaseConfig(object):
|
|
|
# 完整格式:com.weiqu.video.recall.hot.item.score.dup.region.24h.{region}.{rule_key}.{date}.{h}
|
|
|
RECALL_KEY_NAME_PREFIX_DUP_REGION_24H = 'com.weiqu.video.recall.hot.item.score.dup.region.24h.'
|
|
|
# 地域分组小时级更新24h视频状态不符合推荐要求的列表 redis key,完整格式:com.weiqu.video.filter.region.h.item.24h.{region}.{rule_key}
|
|
|
- REGION_H_VIDEO_FILER_24H = 'com.weiqu.video.filter.region.h.item.24hpre.'
|
|
|
+ REGION_H_VIDEO_FILER_24H = 'com.weiqu.video.filter.region.h.item.24h.'
|
|
|
|
|
|
|
|
|
# 小程序老视频更新结果存放 redis key 前缀,完整格式:'com.weiqu.video.recall.old.item.{date}'
|
|
@@ -309,11 +309,11 @@ class BaseConfig(object):
|
|
|
KEY_NAME_PREFIX_SPECIAL_VIDEOS = 'com.weiqu.video.special.videos.item.'
|
|
|
|
|
|
# 限流视频集合存放 redis key前缀,完整格式:'com.weiqu.video.limit.set.{date}'
|
|
|
- KEY_NAME_PREFIX_LIMIT_VIDEO_SET = 'com.weiqu.video.limit.setpre.'
|
|
|
+ KEY_NAME_PREFIX_LIMIT_VIDEO_SET = 'com.weiqu.video.limit.set.'
|
|
|
# 限流视频最大分发数记录 redis key,完整格式:'com.weiqu.video.limit.item'
|
|
|
- KEY_NAME_PREFIX_LIMIT_VIDEOS = 'com.weiqu.video.limit.itempre'
|
|
|
+ KEY_NAME_PREFIX_LIMIT_VIDEOS = 'com.weiqu.video.limit.item'
|
|
|
# 限流视频分发数记录 redis key前缀,完整格式:'com.weiqu.video.limit.distribute.count.{videoId}'
|
|
|
- KEY_NAME_PREFIX_LIMIT_VIDEO_DISTRIBUTE_COUNT = 'com.weiqu.video.limit.distribute.countpre.'
|
|
|
+ KEY_NAME_PREFIX_LIMIT_VIDEO_DISTRIBUTE_COUNT = 'com.weiqu.video.limit.distribute.count.'
|
|
|
|
|
|
|
|
|
class DevelopmentConfig(BaseConfig):
|
|
@@ -638,8 +638,8 @@ class ProductionConfig(BaseConfig):
|
|
|
|
|
|
def set_config():
|
|
|
# 获取环境变量 ROV_OFFLINE_ENV
|
|
|
- # env = os.environ.get('ROV_OFFLINE_ENV')
|
|
|
- env = 'pre'
|
|
|
+ env = os.environ.get('ROV_OFFLINE_ENV')
|
|
|
+ # env = 'dev'
|
|
|
if env is None:
|
|
|
# log_.error('ENV ERROR: is None!')
|
|
|
return
|