summaryrefslogtreecommitdiff
path: root/static_pool.go
diff options
context:
space:
mode:
Diffstat (limited to 'static_pool.go')
-rwxr-xr-xstatic_pool.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/static_pool.go b/static_pool.go
index 4ecbdd41..2905742b 100755
--- a/static_pool.go
+++ b/static_pool.go
@@ -43,6 +43,10 @@ type StaticPool struct {
func NewPool(ctx context.Context, cmd func() *exec.Cmd, factory Factory, cfg Config) (Pool, error) {
cfg.InitDefaults()
+ if cfg.HeavyLoad {
+ cfg.NumWorkers = 0
+ }
+
p := &StaticPool{
cfg: cfg,
cmd: cmd,