Skip to content

feat(template): auto-start apps on deploy via lifecycle.started#454

Merged
pkosiec merged 1 commit into
mainfrom
pkosiec/update-bundle
Jun 19, 2026
Merged

feat(template): auto-start apps on deploy via lifecycle.started#454
pkosiec merged 1 commit into
mainfrom
pkosiec/update-bundle

Conversation

@pkosiec

@pkosiec pkosiec commented Jun 19, 2026

Copy link
Copy Markdown
Member

What

  • Add lifecycle.started: true to the scaffolded template/databricks.yml.tmpl (under resources.apps.app), so a deploy starts the app and returns its URL — no separate start step.
  • Rework template/README.md deployment section to use the single databricks apps deploy command instead of the bundle validatebundle deploybundle run sequence. Adds a short note on restarting a stopped app with databricks apps start.

Why

A bare databricks bundle deploy creates the app with no_compute=true and leaves it stopped, so the scaffolded two-step README (bundle deploy then bundle run) was the source of agent runs emitting a manual trailing start step (e.g. "To start the deployed app: run databricks apps start …"). lifecycle.started: true (databricks/cli#4672) flips no_compute off; it's supported in direct deployment mode, which is the CLI default. The companion agent-skills PR aligns the docs to recommend databricks apps deploy.

Notes

  • lifecycle.started requires direct deployment mode (CLI default); only explicit terraform mode (DATABRICKS_BUNDLE_ENGINE=terraform) rejects it. Requires Databricks CLI ≥ v0.297.0.
  • No committed rendered-template snapshots needed regenerating.

cc the appkit maintainers for review.

This pull request and its description were written by Isaac.

Add `lifecycle.started: true` to the scaffolded `databricks.yml` so a
deploy leaves the app running and returns its URL, with no separate
start step. Update the template README to use the single
`databricks apps deploy` command instead of the `bundle deploy` +
`bundle run` two-step.

Resolves the friction where a scaffolded app required a manual
`bundle run` / `apps start` after deploy.

Co-authored-by: Isaac
@pkosiec pkosiec force-pushed the pkosiec/update-bundle branch from 5de79b7 to 57607da Compare June 19, 2026 09:04
@pkosiec pkosiec marked this pull request as ready for review June 19, 2026 09:09
@pkosiec pkosiec requested a review from a team as a code owner June 19, 2026 09:09
@pkosiec pkosiec requested a review from ditadi June 19, 2026 09:09
@pkosiec pkosiec merged commit e0e9383 into main Jun 19, 2026
9 checks passed
@pkosiec pkosiec deleted the pkosiec/update-bundle branch June 19, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants