Skip to content

Commit

Permalink
debug用: 只使用1台蹲饼器配置
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungHector committed Jan 24, 2025
1 parent 4be2511 commit 228efea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ def _update(self, maintainer=None, is_mook=False, is_debug=True):
# 终末地时期debug用
logger.warning('alive_instance_id_list is: {}'.format(fetcher_name_list))
if is_debug:
# 为确保一个蹲饼器可以蹲到,只配置一台存活
fetcher_name_list = [fetcher_name_list[-1]]
if len(fetcher_name_list) > 1:
# 为确保一个蹲饼器可以蹲到,只配置一台存活
fetcher_name_list = [fetcher_name_list[-1]]

# 模拟平台只有一个蹲饼器.
if is_mook:
Expand Down

0 comments on commit 228efea

Please sign in to comment.