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

Method SpawnMinWorkers

controlplane/worker_mgr.go:672–674  ·  view source on GitHub ↗

SpawnMinWorkers pre-warms the pool with the given number of workers. This is used at startup for the elastic 1:1 model.

(count int)

Source from the content-addressed store, hash-verified

670 if err := p.SpawnWorker(id); err != nil {
671 errs <- err
672 }
673 }(i)
674 }
675
676 wg.Wait()
677 close(errs)

Callers

nothing calls this directly

Calls 1

SpawnAllMethod · 0.95

Tested by

no test coverage detected