Fail closed when cache readiness is not yet running

2c82cc7cd07d · Devin AI · · parent 9df580910b9e

Fail closed when cache readiness is not yet running

Cluster health reports call CacheReadiness.ready? on peers whose
application is loaded but not started. Treat a missing readiness
process as not ready instead of crashing the report.

Co-Authored-By: Christopher David <chris@openagents.com>
Co-Authored-By
Christopher David <chris@openagents.com>

Deploy story

What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.

built
0 modules in 123.2 s

Changed files

  • modified lib/openagents/forge/cache_readiness.ex

Diff

1 file changed, +2 -0

lib/openagents/forge/cache_readiness.ex modified +2

@@ -22,6 +22,8 @@ defmodule OpenAgents.Forge.CacheReadiness do

22 22
23 23
  def ready? do
24 24
    GenServer.call(__MODULE__, :ready?)
25
  catch
26
    :exit, _reason -> false
25 27
  end
26 28
27 29
  def report do

This page updates live while a promote is in flight · changelog