The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
perf(cron): skip the skipped-run count in `cron list`
kshitijk4poor15e6c85e1ce8
diff --git a/hermes_cli/cron.py b/hermes_cli/cron.pyindex 60d38ef1d78..61eeea5b5c6 100644--- a/hermes_cli/cron.py+++ b/hermes_cli/cron.py@@ -177,7 +177,7 @@ _STATE_BADGES = {"paused": ("[paused]", Colors.YELLOW), "completed": ("[completedef cron_list(show_all: bool = False):"""List all scheduled jobs."""from cron.jobs import effective_job_state, list_jobs- store_report = _store_unwritable_report()+ store_report = _store_unwritable_report(count_skipped=False) # the one-line banner omits itjobs = list_jobs(include_disabled=True)if not show_all:jobs = [@@ -413,13 +413,13 @@ def _ticker_age_is_fresh(age: Optional[float]) -> bool:return age is not None and age <= TICKER_INTERVAL_SECONDS * 3 + 20-def _store_unwritable_report() -> Optional[dict]:+def _store_unwritable_report(count_skipped: bool = True) -> Optional[dict]:"""Probe the active cron store (never a marker inside it): ``None`` when it accepts writes.Runs before any job read: loading jobs re-secures the dir, which can mask a mode problem."""from cron.jobs import _current_cron_store, list_jobsfrom cron.store_health import probe_reportreport = probe_report(_current_cron_store().cron_dir)- if report is not None:+ if report is not None and count_skipped:report["skipped"] = sum(1 for j in list_jobs(include_disabled=False)if (_next_run_overdue_seconds(j.get("next_run_at")) or 0) > 0)return report