From 6a9bcd9b8c5685e51e713e58ebdc74c105a00d1d Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 25 Jul 2026 12:44:14 +0200 Subject: [PATCH] Add readiness probe to devenv --- devenv.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devenv.nix b/devenv.nix index 25c49a2..075e3f4 100644 --- a/devenv.nix +++ b/devenv.nix @@ -80,6 +80,11 @@ in ${config.outputs.server}/bin/server -config "$DEVENV_RUNTIME/metadata-config.yaml" ''; after = [ "devenv:processes:postgres" ]; + # Probes the standard gRPC Health Checking Protocol (cmd/server/main.go + # registers google.golang.org/grpc/health + reflection). Port matches + # server.port in the YAML above. SERVING means the gRPC server is + # accepting connections; postgres readiness is already gated by `after`. + ready.exec = "grpcurl -plaintext -max-time 2 localhost:50053 grpc.health.v1.Health/Check | grep -q SERVING"; }; outputs = {