This commit is contained in:
Lennart Kats 2023-07-07 11:09:09 +02:00
parent d221d4d348
commit 50b76bb41e
2 changed files with 2 additions and 6 deletions

View File

@ -18,10 +18,6 @@ func (m *populateCurrentUser) Name() string {
}
func (m *populateCurrentUser) Apply(ctx context.Context, b *bundle.Bundle) error {
if b.Config.Workspace.CurrentUser != nil {
return nil
}
w := b.WorkspaceClient()
me, err := w.CurrentUser.Me(ctx)
if err != nil {

View File

@ -11,7 +11,7 @@ import (
type processEnvironmentMode struct{}
const debugConcurrentRuns = 4
const developmentConcurrentRuns = 4
func ProcessEnvironmentMode() bundle.Mutator {
return &processEnvironmentMode{}
@ -34,7 +34,7 @@ func processDevelopmentMode(b *bundle.Bundle) error {
}
r.Jobs[i].Tags["dev"] = ""
if r.Jobs[i].MaxConcurrentRuns == 0 {
r.Jobs[i].MaxConcurrentRuns = debugConcurrentRuns
r.Jobs[i].MaxConcurrentRuns = developmentConcurrentRuns
}
if r.Jobs[i].Schedule != nil {
r.Jobs[i].Schedule.PauseStatus = "PAUSED"