scheduledRefresh configration option of
pre-aggregations.
/v1/pre-aggregations/jobs endpoint of the REST
API.
Supported tools
Orchestration API has integration packages to work with popular data orchestration tools. Check the following guides to get tool-specific instructions:Apache Airflow
Dagster
Prefect
Configuration
Orchestration API is enabled by default but inaccessible due to the default API scopes configuration. To allow access to the Orchestration API, enable thejobs scope, e.g., by setting the CUBEJS_DEFAULT_API_SCOPES
environment variable to meta,data,graphql,jobs.
Building pre-aggregations
Orchestration API allows to trigger pre-aggregation builds programmatically. It can be useful for data orchestration tools to push changes from upstream data sources to Cube or for any third parties to invalidate and rebuild pre-aggregations on demand. You can trigger pre-aggregation builds and check build statuses using the/v1/pre-aggregations/jobs endpoint. It is possible to
rebuild all pre-aggregations or specify the ones to be rebuilt:
- Particular pre-aggregations.
- Pre-aggregations that reference particular cubes.
- Pre-aggregations that reference cubes from particular data sources.
- For partitioned pre-aggregations, only partitions that contain data from a particular date range.