Skip to content

Commit

Permalink
Added output message to warn about slower deployments with apps
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnester committed Jan 16, 2025
1 parent a002a24 commit 31d44e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bundle/apps/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"strings"

"github.com/databricks/cli/bundle"
"github.com/databricks/cli/libs/cmdio"
"github.com/databricks/cli/libs/diag"
)

Expand All @@ -17,6 +18,10 @@ func (v *validate) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnostics
possibleConfigFiles := []string{"app.yml", "app.yaml"}
usedSourceCodePaths := make(map[string]string)

if len(b.Config.Resources.Apps) > 0 {
cmdio.LogString(ctx, "Databricks apps in your bundle can slow initial deployment as they wait for compute provisioning.")
}

for key, app := range b.Config.Resources.Apps {
if _, ok := usedSourceCodePaths[app.SourceCodePath]; ok {
diags = append(diags, diag.Diagnostic{
Expand Down

0 comments on commit 31d44e8

Please sign in to comment.