mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-11-10 10:13:50 +08:00
## Problem ResumeActor returned as soon as the resume workflow finished, not when glutton's port 80 listener was accepting connections. A ping issued right after resume could land in that gap, get ECONNREFUSED, and come back from the router as a 503. ateom already has a gate for exactly this: `internal/readyz.WaitAll` blocks `RestoreWorkload` and `RunWorkload` until every container that declares a readyz probe returns 200. But containers without a probe are skipped entirely, and glutton declared none, so nothing waited on it. ## Solution Add `/readyz` to glutton's HTTP mux and point the ActorTemplate at it. The route goes on the same listener as `/ping` rather than the metrics port: the metrics server starts independently, so a 200 there would say nothing about whether `/ping` is reachable yet. ## Notes `ActorTemplate.spec` is immutable, so picking this up needs a delete and recreate of the template, not an apply.