
Dbt CheckStatus
CertifiedMonitor a dbt Cloud run
Dbt CheckStatus
Monitor a dbt Cloud run
Polls a dbt Cloud run until it ends, streaming step logs and downloading artifacts.
Takes a runId, or a jobId or environmentId to read the most recent successful run of that job or
environment, which keeps lineage fresh for runs Kestra did not trigger.
Fails on non-successful statuses unless failOnUnsuccessful is false.
Defaults to 5s polling and a 60m timeout.
type: io.kestra.plugin.dbt.cloud.CheckStatusExamples
id: dbt_check_status
namespace: company.team
tasks:
- id: check_status
type: io.kestra.plugin.dbt.cloud.CheckStatus
accountId: "12345"
token: "{{ secret('DBT_TOKEN') }}"
runId: "98765"
Refresh lineage on a schedule from the most recent finished run of a dbt Cloud job, including runs Kestra did not trigger.
id: dbt_lineage_refresh
namespace: company.team
triggers:
- id: hourly
type: io.kestra.plugin.core.trigger.Schedule
cron: "0 * * * *"
tasks:
- id: refresh_lineage
type: io.kestra.plugin.dbt.cloud.CheckStatus
accountId: "12345"
token: "{{ secret('DBT_TOKEN') }}"
jobId: "4321"
assets:
enableAuto: true
Properties
accountId *Requiredstring
Numeric ID of the account
The numeric dbt Cloud account ID, visible in the account settings and in the dbt Cloud URL.
token *Requiredstring
API token
A dbt Cloud API token (a Service Account token or a Personal Access token); sent as a Bearer token.
baseUrl string
https://cloud.getdbt.comBase URL to select the tenant
The access URL for your dbt Cloud account. Regional and cell-based accounts use a URL of the form ACCOUNT_PREFIX.REGION.dbt.com, not the legacy cloud.getdbt.com host, which no longer resolves tokens for these accounts and returns a 401 error even with a valid token.
environmentId string
Environment ID
dbt Cloud environment identifier. Reads the most recent successful run anywhere in that environment,
whichever job produced it. dbt's manifest covers the whole project, so any run refreshes the full graph.
Mutually exclusive with runId and jobId.
failOnUnsuccessful booleanstring
trueFail if the run ends in a non-successful state
When true (default), a run ending in Error or Cancelled raises a task failure.
Set to false to read a run without failing the task, which matters when a runId is pinned on a
schedule. jobId and environmentId resolve successful runs only, so it does not apply there.
initialDelayMs integerstring
1000Initial delay in milliseconds before retrying
Default: 1000 ms (1 second)
jobId string
Job ID
dbt Cloud job identifier. Reads that job's most recent successful run, which refreshes lineage for
runs triggered outside Kestra.
Mutually exclusive with runId and environmentId.
maxDuration string
PT1HMax wait duration
Upper bound for waiting on completion. Default 60m.
maxRetries integerstring
3Maximum number of retries in case of transient errors
Default: 3
options Non-dynamic
The HTTP client configuration
io.kestra.core.http.client.configurations.HttpConfiguration
falseIf true, allow a failed response code (response code >= 400)
List of response code allowed for this request
The authentication to use.
io.kestra.core.http.client.configurations.BasicAuthConfiguration
The password for HTTP basic authentication.
The username for HTTP basic authentication.
io.kestra.core.http.client.configurations.BearerAuthConfiguration
The token for bearer token authentication.
io.kestra.core.http.client.configurations.DigestAuthConfiguration
The password for HTTP Digest authentication.
The username for HTTP Digest authentication.
UTF-8The default charset for the request.
java.nio.charset.Charset
trueWhether to enable TCP Keep-Alive extended socket options (TCP_KEEPIDLE, TCP_KEEPINTERVAL, TCP_KEEPCOUNT).
Set to false when running on Windows workers, as these extended socket options are not supported by the Windows JDK and will cause connection failures.
trueWhether redirects should be followed automatically.
REQUEST_HEADERSREQUEST_BODYRESPONSE_HEADERSRESPONSE_BODYThe enabled log.
The proxy configuration.
io.kestra.core.http.client.configurations.ProxyConfiguration
The address of the proxy server.
The password for proxy authentication.
The port of the proxy server.
DIRECTDIRECTHTTPSOCKSThe type of proxy to use.
The username for proxy authentication.
The SSL request options
io.kestra.core.http.client.configurations.SslOptions
Whether to disable checking of the remote SSL certificate.
Only applies if no trust store is configured. Note: This makes the SSL connection insecure and should only be used for testing. If you are using a self-signed certificate, set up a trust store instead.
The timeout configuration.
io.kestra.core.http.client.configurations.TimeoutConfiguration
The time allowed to establish a connection to the server before failing.
PT5MThe time allowed for a read connection to remain idle before closing it.
parseRunResults booleanstring
trueParse run results
If true (default), parses run_results.json to expose node timings; otherwise uploads the artifact as-is.
pollFrequency string
PT5SPoll frequency
Interval between status checks while waiting. Default 5s.
runId string
Run ID
dbt Cloud run identifier to monitor.
Mutually exclusive with jobId and environmentId.
Outputs
assets array
Assets
Asset ids described by the run's manifest, whether or not lineage was emitted.
lineageEmitted boolean
falseLineage emitted
True when this execution emitted the run's asset lineage, false when it had already been emitted for this run.
manifest string
uriManifest URI
Internal storage URI for the downloaded manifest.json, when present.
runId integer
Run ID
Identifier of the dbt Cloud run that was read.
runResults string
uriRun results URI
Internal storage URI for the downloaded run_results.json, when present.