|
@@ -439,7 +439,6 @@ class PoolRecall(object):
|
|
|
|
|
|
def flow_pool_recall(self, size=10, flow_pool_id=None, flow_pool_abtest_group=None):
|
|
def flow_pool_recall(self, size=10, flow_pool_id=None, flow_pool_abtest_group=None):
|
|
"""从流量池中获取视频"""
|
|
"""从流量池中获取视频"""
|
|
- log_.info(f"flow_pool_abtest_group1: {flow_pool_abtest_group}")
|
|
|
|
start_time = time.time()
|
|
start_time = time.time()
|
|
|
|
|
|
city_code_list = [code for _, code in config_.CITY_CODE.items()]
|
|
city_code_list = [code for _, code in config_.CITY_CODE.items()]
|
|
@@ -529,7 +528,6 @@ class PoolRecall(object):
|
|
video_id = int(item[0])
|
|
video_id = int(item[0])
|
|
flow_pool = item[1]
|
|
flow_pool = item[1]
|
|
if video_id not in flow_pool_recall_videos:
|
|
if video_id not in flow_pool_recall_videos:
|
|
- log_.info(f"flow_pool_abtest_group: {flow_pool_abtest_group}")
|
|
|
|
|
|
|
|
|
|
|
|
flow_pool_recall_result.append(
|
|
flow_pool_recall_result.append(
|
|
@@ -678,7 +676,6 @@ class PoolRecall(object):
|
|
|
|
|
|
def flow_pool_recall_new_with_level(self, size=10, flow_pool_id=None, flow_pool_abtest_group=None):
|
|
def flow_pool_recall_new_with_level(self, size=10, flow_pool_id=None, flow_pool_abtest_group=None):
|
|
"""从流量池中获取视频"""
|
|
"""从流量池中获取视频"""
|
|
- log_.info(f"flow_pool_abtest_group1: {flow_pool_abtest_group}")
|
|
|
|
start_time = time.time()
|
|
start_time = time.time()
|
|
|
|
|
|
city_code_list = [code for _, code in config_.CITY_CODE.items()]
|
|
city_code_list = [code for _, code in config_.CITY_CODE.items()]
|
|
@@ -769,7 +766,6 @@ class PoolRecall(object):
|
|
if video_id not in flow_pool_recall_videos:
|
|
if video_id not in flow_pool_recall_videos:
|
|
|
|
|
|
|
|
|
|
- log_.info(f"flow_pool_abtest_group: {flow_pool_abtest_group}")
|
|
|
|
flow_pool_recall_result.append(
|
|
flow_pool_recall_result.append(
|
|
{'videoId': video_id, 'flowPool': flow_pool, 'level': level,
|
|
{'videoId': video_id, 'flowPool': flow_pool, 'level': level,
|
|
'rovScore': random.uniform(0, 100), 'pushFrom': config_.PUSH_FROM['flow_recall'],
|
|
'rovScore': random.uniform(0, 100), 'pushFrom': config_.PUSH_FROM['flow_recall'],
|