|
@@ -473,7 +473,7 @@ class PoolRecall(object):
|
|
|
|
|
|
filter_ = FilterVideos(request_id=self.request_id,
|
|
|
app_type=self.app_type, mid=self.mid, uid=self.uid, video_ids=video_ids)
|
|
|
- ge = gevent.spawn(filter_.filter_videos)
|
|
|
+ ge = gevent.spawn(filter_.filter_videos, pool_type='flow')
|
|
|
ge.join()
|
|
|
filtered_result = ge.get()
|
|
|
|
|
@@ -483,6 +483,15 @@ class PoolRecall(object):
|
|
|
ge = gevent.spawn(self.check_video_counts, video_ids=filtered_result, flow_pool_mapping=video_mapping)
|
|
|
ge.join()
|
|
|
check_result, error_flag = ge.get()
|
|
|
+ log_.info({
|
|
|
+ 'logTimestamp': int(time.time() * 1000),
|
|
|
+ 'request_id': self.request_id,
|
|
|
+ 'app_type': self.app_type,
|
|
|
+ 'mid': self.mid,
|
|
|
+ 'uid': self.uid,
|
|
|
+ 'operation': 'check_video_counts',
|
|
|
+ 'executeTime': (time.time() - st_check) * 1000
|
|
|
+ })
|
|
|
|
|
|
|
|
|
for item in check_result:
|
|
@@ -553,9 +562,17 @@ class PoolRecall(object):
|
|
|
return check_result, error_flag
|
|
|
|
|
|
|
|
|
+ st_remain_view_count = time.time()
|
|
|
view_count_result, error_flag = get_videos_remain_view_count(app_type=self.app_type, videos=videos)
|
|
|
-
|
|
|
-
|
|
|
+ log_.info({
|
|
|
+ 'logTimestamp': int(time.time() * 1000),
|
|
|
+ 'request_id': self.request_id,
|
|
|
+ 'app_type': self.app_type,
|
|
|
+ 'mid': self.mid,
|
|
|
+ 'uid': self.uid,
|
|
|
+ 'operation': 'remainViewCount',
|
|
|
+ 'executeTime': (time.time() - st_remain_view_count) * 1000
|
|
|
+ })
|
|
|
|
|
|
if error_flag:
|
|
|
return check_result, error_flag
|