MCPcopy Create free account
hub / github.com/PostHog/duckgres / waitForWorkerTCP

Function waitForWorkerTCP

controlplane/k8s_pool_spawn.go:492–494  ·  view source on GitHub ↗

waitForWorkerTCP connects to a worker over TCP and verifies its health.

(addr, bearerToken string, serverCertPEM []byte, timeout time.Duration)

Source from the content-addressed store, hash-verified

490 p.mu.Unlock()
491 // The slot row (if any) stays in spawning state; the janitor's
492 // stale-spawning sweep reconciles it, same as a failed spawn below.
493 return nil, fmt.Errorf("pool is shutting down")
494 }
495 p.spawning++
496 p.mu.Unlock()
497 err = p.spawnWorker(ctx, id, assignment.Image, profile, false)

Callers 1

spawnWorkerMethod · 0.85

Calls 1

Tested by

no test coverage detected