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

Method SpawnMinWorkers

controlplane/org_reserved_pool.go:362–364  ·  view source on GitHub ↗
(count int)

Source from the content-addressed store, hash-verified

360 return p.shared.RetireWorkerIfNoSessions(id)
361}
362
363func (p *OrgReservedPool) Worker(id int) (*ManagedWorker, bool) {
364 p.shared.mu.RLock()
365 defer p.shared.mu.RUnlock()
366 w, ok := p.shared.workers[id]
367 if !ok || !p.workerBelongsToOrgLocked(w) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected