Projects Refresh
Certified
Refresh a Lightdash project
Projects Refresh
Refresh a Lightdash project
Triggers a refresh of the dbt semantic layer and schema cache for a specific Lightdash project, optionally polling the scheduler until the refresh job completes.
type: io.kestra.plugin.lightdash.projects.RefreshExamples
Trigger and wait for a project semantic layer refresh
id: refresh_lightdash_project
namespace: company.analytics
tasks:
- id: refresh_project
type: io.kestra.plugin.lightdash.projects.Refresh
url: "https://app.lightdash.cloud"
apiToken: "{{ secret('LIGHTDASH_API_TOKEN') }}"
projectUuid: "a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d"
wait: true
pollInterval: PT3S
maxWait: PT10M
Installation
Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:
kestractl plugins get io.kestra.plugin:plugin-lightdash --compatible-for $KESTRA_VERSION For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.
Properties
apiToken *string
Lightdash Personal Access Token (API Key)
The Personal Access Token generated from your Lightdash personal settings.
Passed via the Authorization: ApiKey <token> header.
projectUuid *string
Project UUID
The unique identifier of the Lightdash project to refresh.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150maxWait string
PT10MMaximum wait duration
Maximum time to wait for the refresh job to complete before timing out. Defaults to PT10M (10 minutes). Must be positive.
pollInterval string
PT2SPolling interval
Interval between consecutive job status poll requests. Defaults to PT2S (2 seconds). Must be positive.
requestTimeout string
PT30SHTTP request timeout
The timeout duration for HTTP requests made to the Lightdash API. Defaults to PT30S (30 seconds). Must be positive.
url string
https://app.lightdash.cloudLightdash instance base URL
The base URL of your Lightdash instance, e.g. https://app.lightdash.cloud.
Can be provided with or without a trailing slash or /api/v1 path.
wait booleanstring
trueWait for completion
Whether to poll and wait until the refresh background job completes or fails.
Outputs
details object
Additional details, execution times, or metadata returned for the job.
jobUuid string
The UUID of the refresh job.
status string
The terminal execution status of the refresh job (e.g., completed, error, scheduled).