add lifecycle run state

This commit is contained in:
2026-06-29 23:16:19 +08:00
parent 0610a8291c
commit 860bad2113
9 changed files with 405 additions and 57 deletions

View File

@@ -57,6 +57,12 @@ RSYNC_SCOPE=module-root
# 建议保持 1;设置为 0 时,检测到前一轮失败会直接停止。
FAILURE_SNAPSHOT_RESET=1
# 周期性 snapshot reset 独立生命周期状态文件固定保存到:
# ${RUN_ROOT}/state/run-lifecycle-state.json
# 该文件不会被 RETAIN_RUNS 清理,也不会随 state/db reset 删除。
PERIODIC_SNAPSHOT_RESET=0
PERIODIC_SNAPSHOT_MAX_DELTAS=100
# 每隔多少轮执行一次 db_stats --exact。设置为空或 0 表示关闭 exact 统计。
DB_STATS_EXACT_EVERY=3