Use live MQTT readiness for server health checks
Test and deploy MQTT backend / test (push) Successful in 1m44s
Test and deploy MQTT backend / deploy (push) Successful in 14s

This commit is contained in:
2026-10-08 14:51:32 +03:30
parent 71ef622b4f
commit 9a32f634d4
5 changed files with 35 additions and 2 deletions
+1
View File
@@ -168,6 +168,7 @@ func Run(ctx context.Context, args []string, out, errOut io.Writer, sim bool) in
var viewer *web.Viewer
if cfg.Web.Enabled {
viewer = web.New(cfg.Web, store, cfg.Deadlines.Shutdown)
viewer.SetReadiness(client.Ready)
if err = viewer.Start(); err != nil {
fmt.Fprintln(errOut, err)
return 1