Increase max concurrent runs for debug runs

This commit is contained in:
Lennart Kats 2023-06-18 17:40:30 +02:00
parent 27b2b77bff
commit 823c868d39
1 changed files with 6 additions and 1 deletions

View File

@ -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 {