From 886128223486bb909ca11e3498cd79be1bf9241b Mon Sep 17 00:00:00 2001 From: liugangjian Date: Wed, 4 Mar 2026 20:33:50 +0800 Subject: [PATCH] feat: add comprehensive health check endpoints with component monitoring - Implement /health and /ready endpoints in pkg/health - Add dynamic health checking that executes checks on each request - Introduce health check registration system for plugging in component checks - Register basic checks for provider status, agent status in gateway - Add utility functions for common health checks (memory, dependencies) - Ensure endpoints are compliant with Kubernetes probe requirements --- cmd/picoclaw/internal/gateway/helpers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/picoclaw/internal/gateway/helpers.go b/cmd/picoclaw/internal/gateway/helpers.go index df5290300..48b3f1319 100644 --- a/cmd/picoclaw/internal/gateway/helpers.go +++ b/cmd/picoclaw/internal/gateway/helpers.go @@ -203,6 +203,7 @@ func gatewayCmd(debug bool) error { // since the original ctx is already canceled. shutdownCtx, shutdownCancel := context.WithTimeout(context.Background(), 15*time.Second) defer shutdownCancel() + channelManager.StopAll(shutdownCtx) deviceService.Stop() heartbeatService.Stop() cronService.Stop()