Skip to content

Commit e3b16df

Browse files
fix(task): prevent campaign double-loop (N×N execution) (#366)
* ci: 每30分钟自动同步上游仓库 * fix(task): prevent campaign double-loop by setting CampaignRunner times=1 The route handler already iterates request.times rounds in an outer loop, but CampaignRunner was also initialized with times=request.times, causing N×N total executions. Set CampaignRunner(times=1) so each outer iteration runs exactly one campaign round. --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent cb6dddd commit e3b16df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autowsgr/server/routes/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def executor(task_info: Any) -> list[dict[str, Any]]:
192192
runner = CampaignRunner(
193193
ctx,
194194
campaign_name=request.campaign_name,
195-
times=request.times,
195+
times=1,
196196
)
197197

198198
results = []

0 commit comments

Comments
 (0)