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

Method SetMaxWorkers

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

SetMaxWorkers updates the maximum number of workers. 0 means unlimited.

(n int)

Source from the content-addressed store, hash-verified

84
85 // SetMaxWorkers updates the maximum number of workers. 0 means unlimited.
86 SetMaxWorkers(n int)
87
88 // ShutdownAll stops all workers gracefully.
89 ShutdownAll()

Callers 1

HandleConfigChangeMethod · 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