Apps
This page covers both frameworks. The YAML below is the original (SBT Beta) app format; SBT 1.0 additions are described at the end of the page.
Apps are the final publishable product of the SBT workflow. They are a bundle of dependent models that are run together to produce a final set of output tables. Apps are defined in a yaml file under a apps key. The structure of the yaml file is as follows:
apps:
- name: sql_test_app
requires:
- sql_test
- data_model_test
config:
sigma_workbook_id: your_sigma_workbook_id
sigma_db_attribute: test_db
freshness_query: freshSee Helpers & the Run Context for more information on helper queries
See Data Freshness for more information on app freshness and how users can interact with it.
SBT 1.0 (AppSpec) additions
Apps built on the SBT 1.0 framework add two fields to the app YAML:
apps:
- name: sql_test_app
version: 1.0.0
publisher: your_publisher_key
requires:
- sql_testLocked versions. A published version never changes. The latest published version becomes the default for new installs.
requirements.txt. Ship a pinned
requirements.txtwith your app. It is uploaded with the app and built into the app's runtime image. The earlier compute profile concept no longer exists.Python modules folder. Shared Python code lives in a modules folder in your project and is frozen with each app version. No separate package needed.
App-level freshness (SBT 1.0)
An optional max_age setting on the app configuration skips runs whose outputs are still current. See Model Reuse: Freshness and Shared Models.