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

Method SpawnMinWorkers

controlplane/worker_pool.go:77–77  ·  view source on GitHub ↗

SpawnMinWorkers pre-warms the pool with count workers at startup. Only the process FlightWorkerPool implements this (--process-min-workers); the K8s pool spawns on demand, so its implementation is a no-op.

(count int)

Source from the content-addressed store, hash-verified

75 // process FlightWorkerPool implements this (--process-min-workers); the K8s
76 // pool spawns on demand, so its implementation is a no-op.
77 SpawnMinWorkers(count int) error
78
79 // HealthCheckLoop runs periodic health checks on all workers.
80 // onCrash is called when a worker crash is detected.

Callers 1

RunControlPlaneFunction · 0.65

Implementers 10

recordingOrgRouterPoolcontrolplane/org_router_test.go
recordingFloorConfigPoolcontrolplane/org_router_test.go
K8sWorkerPoolcontrolplane/k8s_pool.go
OrgReservedPoolcontrolplane/org_reserved_pool.go
recordingWorkerPoolcontrolplane/session_mgr_drain_test.go
blockingReleaseWorkerPoolcontrolplane/session_mgr_drain_test.go
blockingCreateSessionPoolcontrolplane/session_mgr_drain_test.go
cancelAwareWorkerPoolcontrolplane/session_mgr_drain_test.go
FlightWorkerPoolcontrolplane/worker_mgr.go
acquireErrorPoolcontrolplane/session_mgr_test.go

Calls

no outgoing calls

Tested by

no test coverage detected