From 823c868d392ec52401e8d4b883bef49cb69344c8 Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Sun, 18 Jun 2023 17:40:30 +0200 Subject: [PATCH] Increase max concurrent runs for debug runs --- bundle/config/mutator/process_environment_mode.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bundle/config/mutator/process_environment_mode.go b/bundle/config/mutator/process_environment_mode.go index 37de53e5c..c849c4d57 100644 --- a/bundle/config/mutator/process_environment_mode.go +++ b/bundle/config/mutator/process_environment_mode.go @@ -11,6 +11,8 @@ import ( type processEnvironmentMode struct{} +const debugConcurrentRuns = 4 + func ProcessEnvironmentMode() bundle.Mutator { return &processEnvironmentMode{} } @@ -31,12 +33,15 @@ func processDebugMode(b *bundle.Bundle) error { r.Jobs[i].Tags = make(map[string]string) } r.Jobs[i].Tags["debug"] = "" + if r.Jobs[i].MaxConcurrentRuns == 0 { + r.Jobs[i].MaxConcurrentRuns = debugConcurrentRuns + } } for i := range r.Pipelines { r.Pipelines[i].Name = "[debug] " + r.Pipelines[i].Name r.Pipelines[i].Development = true - // (pipelines don't have tags) + // (pipelines don't yet support tags) } for i := range r.Models {