Skip to content

修复重置状态时未清理临时停调度#1375

Merged
Wei-Shaw merged 1 commit intoWei-Shaw:mainfrom
weak-fox:fix/batch-reset-temp-unsched
Mar 30, 2026
Merged

修复重置状态时未清理临时停调度#1375
Wei-Shaw merged 1 commit intoWei-Shaw:mainfrom
weak-fox:fix/batch-reset-temp-unsched

Conversation

@weak-fox
Copy link
Copy Markdown
Contributor

概要

  • ClearAccountError 在清理错误状态时一并清除限流、模型限流、临时不可调度等可恢复运行时状态
  • 让批量“重置状态”与真正阻塞调度的运行时状态保持一致
  • 增加对应的单元测试覆盖

测试

  • go test -tags unit ./internal/service -run 'TestAdminService_ClearAccountError_AlsoClearsRecoverableRuntimeState'

@Wei-Shaw Wei-Shaw merged commit 17d7e57 into Wei-Shaw:main Mar 30, 2026
4 checks passed
liafonx pushed a commit to liafonx/sub2api that referenced this pull request Apr 11, 2026
…nsched

修复重置状态时未清理临时停调度
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.

2 participants