From ea0c5b42d07515dd61d83a9cd42fa599e3a12090 Mon Sep 17 00:00:00 2001 From: Joshua Mervine Date: Wed, 13 Apr 2016 13:07:12 -0700 Subject: [PATCH] start concurrency only runs listed processes (#64) * start concurrency only runs listed processes * fixing all condition in a hacky way --- start.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/start.go b/start.go index 7c82de9..b0680e3 100644 --- a/start.go +++ b/start.go @@ -232,16 +232,22 @@ func runStart(cmd *Command, args []string) { defaultConcurrency := 1 + var all bool for name, num := range concurrency { if name == "all" { defaultConcurrency = num + all = true } } for idx, proc := range pf.Entries { numProcs := defaultConcurrency - if value, ok := concurrency[proc.Name]; ok { - numProcs = value + if len(concurrency) > 0 { + if value, ok := concurrency[proc.Name]; ok { + numProcs = value + } else if !all { + continue + } } for i := 0; i < numProcs; i++ { if (singleton == "") || (singleton == proc.Name) {