Skip to content

fix(console): reduce duplicate KV writes from routine heartbeats - #407

Merged
Pigbibi merged 2 commits into
mainfrom
fix/kv-usage-20260909
Sep 8, 2026
Merged

fix(console): reduce duplicate KV writes from routine heartbeats#407
Pigbibi merged 2 commits into
mainfrom
fix/kv-usage-20260909

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

运行目标状态没有变化时,每次定时心跳仍会额外重写滚动审计列表,增加免费 KV 写入消耗。现在始终保存最新完整快照与原始读回时间,只跳过状态未变化的重复同步审计。单次稳定心跳的 KV 写入从两次降为一次。

首次发布、实际状态变化、异常和恢复、过期证据恢复、调度读回变化仍记录审计;人工操作审计不变。已有快照缺失、损坏或读取失败不会阻断有效新快照的保存。未更改数据有效期、认证、账户配置或交易保护,也未升级套餐。

验证:操作计数回归在旧实现中确认重复写入;修复后 Worker 集成验证、停用保护和 Binance 恢复保护测试通过。新增状态过期恢复回归同样先失败再通过;说明文档区分测试计数、按调度估算和实际账户统计。真实告警分类仍待 Cloudflare 登录后读取。

Pigbibi and others added 2 commits September 9, 2026 07:37
@Pigbibi
Pigbibi merged commit a00d8b1 into main Sep 8, 2026
6 checks passed
@Pigbibi
Pigbibi deleted the fix/kv-usage-20260909 branch September 8, 2026 23:41
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