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

@@ -46,6 +46,9 @@ FAILURE_SNAPSHOT_RESET=1
# 0: keep existing behavior.
# 1: after one successful snapshot, allow at most N successful delta runs;
# the next run is forced to snapshot and active state/db is rebuilt from empty.
# Lifecycle run state is persisted independently at:
# ${HOST_DATA_DIR}/state/run-lifecycle-state.json
# It is not affected by run retention or state/db reset.
PERIODIC_SNAPSHOT_RESET=0
PERIODIC_SNAPSHOT_MAX_DELTAS=100
DB_STATS_EXACT_EVERY=0