mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: remove standalone AI Gateway http listener dependency on loading providers (#27303)
Fixes an issue where the standalone AI Gateway waited for the initial provider load before starting its HTTP server. HTTP serving now starts independently of provider synchronization. `/healthz` becomes available when the HTTP server starts, while `/readyz` requires an active DRPC connection and completed initial provider load. Enables the Helm chart's startup and liveness probes by default because liveness no longer depends on provider loading.
This commit is contained in:
+2
-2
@@ -90,7 +90,7 @@ func newAIBridgeDaemon(coderAPI *coderd.API, cfg codersdk.AIBridgeConfig, reg pr
|
||||
// and the standalone gateway (WebSocket RPC, retried at startup) so the fetch,
|
||||
// build, replace, and reload-metric accounting live in one place.
|
||||
type poolRPCReloader struct {
|
||||
pool *aibridged.CachedBridgePool
|
||||
pool aibridged.Pooler
|
||||
client aibridged.ClientFuncWithContext
|
||||
cfg codersdk.AIBridgeConfig
|
||||
logger slog.Logger
|
||||
@@ -104,7 +104,7 @@ type poolRPCReloader struct {
|
||||
// Reload's context, so a blocking acquisition unblocks when that context is
|
||||
// canceled.
|
||||
func NewPoolRPCReloader(
|
||||
pool *aibridged.CachedBridgePool,
|
||||
pool aibridged.Pooler,
|
||||
client aibridged.ClientFuncWithContext,
|
||||
cfg codersdk.AIBridgeConfig,
|
||||
logger slog.Logger,
|
||||
|
||||
Reference in New Issue
Block a user