|
@@ -167,6 +167,8 @@ class BaseConfig(object):
|
|
|
'rule_params': {
|
|
|
'rule2': {'cal_score_func': 2, 'return_count': 40, 'platform_return_rate': 0.001,
|
|
|
'view_type': 'preview'},
|
|
|
+ 'rule3': {'cal_score_func': 2, 'return_count': 100, 'platform_return_rate': 0.001,
|
|
|
+ 'view_type': 'preview'},
|
|
|
},
|
|
|
'data_params': {
|
|
|
'data1': [APP_TYPE['VLOG'], ],
|
|
@@ -175,6 +177,7 @@ class BaseConfig(object):
|
|
|
'params_list': [
|
|
|
{'data': 'data1', 'rule': 'rule2'},
|
|
|
{'data': 'data2', 'rule': 'rule2'},
|
|
|
+ {'data': 'data1', 'rule': 'rule3'},
|
|
|
],
|
|
|
},
|
|
|
APP_TYPE['LONG_VIDEO']: {
|
|
@@ -389,6 +392,8 @@ class BaseConfig(object):
|
|
|
# 'rule2': {'view_type': 'video-show', 'platform_return_rate': 0.001, 'region_24h_rule_key': 'rule2'},
|
|
|
'rule3': {'view_type': 'video-show-region', 'platform_return_rate': 0.001,
|
|
|
'region_24h_rule_key': 'rule2'},
|
|
|
+ 'rule4': {'view_type': 'video-show-region', 'platform_return_rate': 0.001,
|
|
|
+ 'region_24h_rule_key': 'rule2', '24h_rule_key': 'rule3'},
|
|
|
},
|
|
|
'data_params': {
|
|
|
'data1': [APP_TYPE['VLOG'], ],
|
|
@@ -397,6 +402,7 @@ class BaseConfig(object):
|
|
|
'params_list': [
|
|
|
{'data': 'data1', 'rule': 'rule3'},
|
|
|
{'data': 'data2', 'rule': 'rule3'},
|
|
|
+ {'data': 'data1', 'rule': 'rule4'},
|
|
|
],
|
|
|
},
|
|
|
APP_TYPE['LONG_VIDEO']: {
|
|
@@ -525,6 +531,9 @@ class BaseConfig(object):
|
|
|
# 小程序小时级24h数据更新结果存放 redis key前缀,
|
|
|
# 完整格式:com.weiqu.video.recall.item.score.apptype.24h.{appType}.{data_key}.{rule_key}.{date}.{h}
|
|
|
RECALL_KEY_NAME_PREFIX_BY_24H = 'com.weiqu.video.recall.item.score.apptype.24h.'
|
|
|
+ # 小程序小时级24h数据 筛选后的剩余数据 更新结果存放 redis key前缀,
|
|
|
+ # 完整格式:com.weiqu.video.recall.item.score.apptype.24h.other.{appType}.{data_key}.{rule_key}.{date}.{h}
|
|
|
+ RECALL_KEY_NAME_PREFIX_BY_24H_OTHER = 'com.weiqu.video.recall.item.score.apptype.24h.other.'
|
|
|
# 小程序离线ROV模型结果与小程序小时级24h更新结果去重后 存放 redis key前缀,
|
|
|
# 完整格式: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.'
|
|
@@ -546,6 +555,9 @@ class BaseConfig(object):
|
|
|
# 小程序24h更新结果与 小程序地域分组24h更新结果/小程序地域分组小时级更新结果 去重后 存放 redis key前缀,
|
|
|
# 完整格式:com.weiqu.video.recall.hot.item.score.dup2.apptype.region.24h.h.{region}.{appType}.{data_key}.{rule_key}.{date}.{h}
|
|
|
RECALL_KEY_NAME_PREFIX_DUP2_REGION_24H_H = 'com.weiqu.video.recall.hot.item.score.dup2.apptype.region.24h.h.'
|
|
|
+ # 小程序小时级24h数据 筛选后的剩余数据 更新结果 与 小程序24h更新结果/小程序地域分组24h更新结果/小程序地域分组小时级更新结果 去重后 存放 redis key前缀,
|
|
|
+ # 完整格式:com.weiqu.video.recall.hot.item.score.dup3.apptype.region.24h.h.{appType}.{data_key}.{rule_key}.{date}.{h}
|
|
|
+ RECALL_KEY_NAME_PREFIX_DUP3_REGION_24H_H = 'com.weiqu.video.recall.hot.item.score.dup3.apptype.region.24h.h.'
|
|
|
# 小程序离线ROV模型结果与 小程序天级更新结果/小程序地域分组天级更新结果/小程序地域分组小时级更新结果 去重后 存放 redis key前缀,
|
|
|
# 完整格式:com.weiqu.video.recall.hot.item.score.dup.apptype.region.h.{region}.{appType}.{data_key}.{rule_key}.{date}.{h}
|
|
|
RECALL_KEY_NAME_PREFIX_DUP_REGION_H = 'com.weiqu.video.recall.hot.item.score.dup.apptype.region.h.'
|
|
@@ -988,8 +1000,8 @@ class ProductionConfig(BaseConfig):
|
|
|
|
|
|
def set_config():
|
|
|
# 获取环境变量 ROV_OFFLINE_ENV
|
|
|
- env = os.environ.get('ROV_OFFLINE_ENV')
|
|
|
- # env = 'dev'
|
|
|
+ # env = os.environ.get('ROV_OFFLINE_ENV')
|
|
|
+ env = 'dev'
|
|
|
if env is None:
|
|
|
# log_.error('ENV ERROR: is None!')
|
|
|
return
|