You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(cache): one circuit breaker with open, cooldown and half-open states guards the valkey cache tier and the rag lookup pause #2073
One Valkey error turns the L2 cache off for the rest of the run: self._valkey = None in src/devops_cli/ai/rag/embeddings.py (two places) and src/devops_cli/security/vulnerability_lookup.py (three places). cache/tiered.py does the opposite and retries and reconnects on every call during an outage. Neither has a cooldown or a half-open state, and the RAG lookup pause has its own hand-written breaker.
Evidence
Checked on main on 2026-10-24: the five self._valkey = None lines are present, and no circuit breaker library is a dependency. This is PR2 of tracking issue #596.
Proposed remedy
Adopt one maintained circuit breaker library (for example pybreaker; check its maintenance first) behind one seam at the Valkey L2 boundary, with open, cooldown, half-open and closed states.
Route the embeddings engine, the threat-intel client and TieredCache through it, and delete every self._valkey = None.
Rewrite the test that pins the nulling so that it covers all four states.
Activity
dan-petty commentedon Oct 24, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate fixes a bug related to cache behavior during Valkey outages.The issue affects system stability and availability of core services.Fixes critical reliability problem in cache tier and RAG lookup pause.Requires adopting a new library, refactoring multiple clients, and updating tests.Both items deal with Valkey clients but the candidate adds a circuit breaker while item 1992 focuses on shared fail-soft client with timeout.fix(rag): a slow embedding batch halves the batch size once for the s…