Skip to content

fix(task): prevent campaign double-loop (N×N execution)#366

Merged
yltx merged 13 commits intoOpenWSGR:mainfrom
yltx:fix/campaign-double-loop
Mar 11, 2026
Merged

fix(task): prevent campaign double-loop (N×N execution)#366
yltx merged 13 commits intoOpenWSGR:mainfrom
yltx:fix/campaign-double-loop

Conversation

@yltx
Copy link
Copy Markdown
Contributor

@yltx yltx commented Mar 11, 2026

问题

战役路由 _start_campaign\ 中存在双重循环 bug:

  • 外层 \ or i in range(request.times)\ 循环 N 次
  • \CampaignRunner(times=request.times)\ 内部又循环 N 次
  • 导致实际执行 N×N 次战役

修复

将 \CampaignRunner(times=1)\ 设为 1,让外层循环控制总次数,每轮只执行一次战役。

@yltx yltx merged commit e3b16df into OpenWSGR:main Mar 11, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant