Skip to content

fix(scheduler): recover accounts immediately after transient cooldown expiry - #80

Open
xiaoguai1818 wants to merge 3 commits into
CherryLover:mainfrom
xiaoguai1818:fix/scheduler-cooldown-expiry-20261117
Open

xiaoguai1818 wants to merge 3 commits into
CherryLover:mainfrom
xiaoguai1818:fix/scheduler-cooldown-expiry-20261117

Conversation

@xiaoguai1818

@xiaoguai1818 xiaoguai1818 commented Nov 17, 2026 •

Copy link
Copy Markdown

Problem

Transiently cooled scheduler accounts disappeared from snapshot membership until full rebuild, even after their cooldown expired.

Fix

Cache the configured pool and re-evaluate schedulability on every cache hit or DB fallback. Preserve platform/group boundaries, mixed-platform opt-in, and permanent disable/manual pause/expiry restrictions.

Origin

Selective backport of Wei-Shaw#8729: reproducer 636981b, fix 39bac35.

Validation

  • Before fix, three cooldown-field regression cases failed; after fix, 3 repeated runs passed.
  • Scheduler/Gateway focused Go tests, service compile, gofmt and diff check passed locally.
  • Added PostgreSQL+Redis integration test for scoped configured membership and recovery.
  • Original CI run 44056649373 exposed a test-fixture isolation issue: simple/ungrouped queries legitimately see unrelated integration accounts. The test now filters to accounts owned by the fixture but still checks cross-group/forced/mixed leakage. Production fix unchanged.
  • Local integration test execution was skipped by repository harness because Docker is unavailable; do not treat it as passed locally.

Current status

Final SHA 06ae997. Target CI and Security Scan must both pass at this SHA before leaving Draft. No merge/deploy/release.

@xiaoguai1818
xiaoguai1818 marked this pull request as ready for review November 17, 2026 09:56
@xiaoguai1818

Copy link
Copy Markdown
Author

已验证最终 SHA 06ae997 的目标 CI 全绿:Go unit/integration(包含 PostgreSQL/Redis 成员资格测试)、Frontend、Shell、golangci-lint 均通过,前后端 Security Scan 也都通过。首次运行的测试 fixture 误判已按共享数据库隔离修正并在最终 SHA 上复验。PR 已转 Ready,烦请维护者复审;未自动合并或部署。

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