feat: add tiered durable state and memory bounds
This commit is contained in:
@@ -572,12 +572,27 @@ def run_poll_loop(
|
||||
architecture_bootstrap_summary: dict[str, Any] = {"enabled": False}
|
||||
if not getattr(base_args, "skip_outcome_sync", False):
|
||||
try:
|
||||
architecture_bootstrap_summary = _bootstrap_architecture_history(
|
||||
modelhub_client=modelhub_client,
|
||||
outcome_tracker=outcome_tracker,
|
||||
ledger_path=Path(base_args.ledger_path),
|
||||
now=now,
|
||||
)
|
||||
if outcome_tracker.has_durable_checkpoint:
|
||||
cached_feedback = outcome_tracker.get_stats_report()
|
||||
architecture_bootstrap_summary = {
|
||||
"source": "durable_checkpoint",
|
||||
"terminalRecords": int(cached_feedback.get("terminalRecords") or 0),
|
||||
"architectureBlocks": len(cached_feedback.get("architectureCompatibilityBlocks") or {}),
|
||||
"fullHistoryScanSkipped": True,
|
||||
}
|
||||
log(
|
||||
"[architecture-bootstrap] source=durable_checkpoint "
|
||||
f"terminal={architecture_bootstrap_summary['terminalRecords']} "
|
||||
f"blocks={architecture_bootstrap_summary['architectureBlocks']} "
|
||||
"full_history_scan=skipped"
|
||||
)
|
||||
else:
|
||||
architecture_bootstrap_summary = _bootstrap_architecture_history(
|
||||
modelhub_client=modelhub_client,
|
||||
outcome_tracker=outcome_tracker,
|
||||
ledger_path=Path(base_args.ledger_path),
|
||||
now=now,
|
||||
)
|
||||
architecture_bootstrap_summary["enabled"] = True
|
||||
_persist_architecture_blacklist(
|
||||
outcome_tracker.get_stats_report(),
|
||||
|
||||
Reference in New Issue
Block a user