mirror of https://github.com/databricks/cli.git
Cleanup
This commit is contained in:
parent
d221d4d348
commit
50b76bb41e
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue