
DBT TriggerRun
CertifiedStart a dbt Cloud job run
DBT TriggerRun
Start a dbt Cloud job run
Triggers a dbt Cloud job via API. Optionally waits for completion to stream logs, surface dynamic steps, and collect run results; wait defaults to true with 5s polling and a 60m cap.
type: io.kestra.plugin.dbt.cloud.TriggerRunExamples
id: dbt_trigger_job_run
namespace: company.team
tasks:
- id: trigger_run
type: io.kestra.plugin.dbt.cloud.TriggerRun
accountId: "dbt_account"
token: "{{ secret('DBT_TOKEN') }}"
jobId: "job_id"
Properties
accountId *Requiredstring
Numeric ID of the account
jobId *Requiredstring
Job ID
Numeric dbt Cloud job identifier to trigger.
token *Requiredstring
API key
baseUrl string
https://cloud.getdbt.comBase URL to select the tenant
cause string
Triggered by Kestra.Run cause
Reason passed to dbt Cloud. Defaults to "Triggered by Kestra."
dbtVersionOverride string
dbt version override
dbt version string to force for this run.
generateDocsOverride booleanstring
Generate docs override
Whether the run builds docs even if the job is configured otherwise.
gitBranch string
Git branch override
Branch to checkout when triggering the job.
gitSha string
Git SHA override
Specific commit to checkout before the run.
initialDelayMs integerstring
1000Initial delay in milliseconds before retrying
Default: 1000 ms (1 second)
maxDuration string
PT1HMax wait duration
Ceiling for waiting on job 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.
The password for HTTP basic authentication. Deprecated, use auth property with a BasicAuthConfiguration instance instead.
The username for HTTP basic authentication. Deprecated, use auth property with a BasicAuthConfiguration instance instead.
durationThe time allowed to establish a connection to the server before failing.
durationThe time an idle connection can remain in the client's connection pool before being closed.
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.
ALLTRACEDEBUGINFOWARNERROROFFNOT_SPECIFIEDThe log level for the HTTP client.
REQUEST_HEADERSREQUEST_BODYRESPONSE_HEADERSRESPONSE_BODYThe enabled log.
The maximum content length of the response.
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 address of the proxy server.
The password for proxy authentication.
The port of the proxy server.
DIRECTHTTPSOCKSThe type of proxy to use.
The username for proxy authentication.
durationThe time allowed for a read connection to remain idle before closing it.
durationThe maximum time allowed for reading data from the server before failing.
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 dbt run results to expose node durations and warnings.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
pollFrequency string
PT5SPoll frequency
Interval between status checks when waiting. Default 5s.
schemaOverride string
Schema override
Destination schema to use instead of the job target default.
stepsOverride array
Steps override
Custom steps list executed instead of the job defaults.
targetNameOverride string
Target name override
Value for the target.name context variable.
threadsOverride string
Threads override
Thread count for the run.
timeoutSecondsOverride integerstring
Timeout override
Job timeout in seconds for this run.
wait booleanstring
trueWait for completion
If true (default), polls dbt Cloud until the run ends and streams logs and artifacts.
Outputs
manifest string
uriManifest URI
Internal storage URI for manifest.json, when available.
runId integer
Run ID
dbt Cloud run identifier returned by the trigger call.
runResults string
uriRun results URI
Internal storage URI for run_results.json, when available.