save_metrics_state

Documentation for eth_defi.research.metrics_freshness.save_metrics_state function.

save_metrics_state(state, path)

Atomically write freshness state.

The write goes through the same atomicwrites pattern as the sticky export state, so a crash mid-write never leaves a truncated state file behind.

Parameters
Return type

None