resolve_metrics_state_path
Documentation for eth_defi.research.metrics_freshness.resolve_metrics_state_path function.
- resolve_metrics_state_path(data_dir)
Resolve the metrics freshness state path for the stablecoin bundle.
VAULT_METRICS_STATE_PATHis an explicit override, following theVAULT_EXPORT_STATE_PATHprecedent. Otherwise the state file lives under the pipeline data directory. The crypto bundle does not use this helper: its state file is always derived from the bundle’s sticky-state path, so one env override can never point both bundles at the same file.- Parameters
data_dir (pathlib.Path) – Pipeline data directory.
- Returns
State file path.
- Return type